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..60ab3b6
--- /dev/null
+++ b/sys-utils/fstrim.timer
@@ -0,0 +1,14 @@
+[Unit]
+Description=Discard unused blocks once a week
+Documentation=man:fstrim
+ConditionVirtualization=!container
+ConditionPathExists=!/etc/initrd-release
+
+[Timer]
+OnCalendar=weekly
+AccuracySec=1h
+Persistent=true
+RandomizedDelaySec=6000
+
+[Install]
+WantedBy=timers.target