summaryrefslogtreecommitdiffstats
path: root/sys-utils/fstrim.timer
diff options
context:
space:
mode:
Diffstat (limited to 'sys-utils/fstrim.timer')
-rw-r--r--sys-utils/fstrim.timer14
1 files changed, 14 insertions, 0 deletions
diff --git a/sys-utils/fstrim.timer b/sys-utils/fstrim.timer
new file mode 100644
index 0000000..e75d09f
--- /dev/null
+++ b/sys-utils/fstrim.timer
@@ -0,0 +1,14 @@
+[Unit]
+Description=Discard unused filesystem blocks once a week
+Documentation=man:fstrim
+ConditionVirtualization=!container
+ConditionPathExists=!/etc/initrd-release
+
+[Timer]
+OnCalendar=weekly
+AccuracySec=1h
+Persistent=true
+RandomizedDelaySec=100min
+
+[Install]
+WantedBy=timers.target