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.timer13
1 files changed, 13 insertions, 0 deletions
diff --git a/sys-utils/fstrim.timer b/sys-utils/fstrim.timer
new file mode 100644
index 0000000..54b3c18
--- /dev/null
+++ b/sys-utils/fstrim.timer
@@ -0,0 +1,13 @@
+[Unit]
+Description=Discard unused blocks once a week
+Documentation=man:fstrim
+ConditionVirtualization=!container
+
+[Timer]
+OnCalendar=weekly
+AccuracySec=1h
+Persistent=true
+RandomizedDelaySec=6000
+
+[Install]
+WantedBy=timers.target