From 877cd8944beda33102dd1a288f51c07b4bbf9278 Mon Sep 17 00:00:00 2001 From: Thomas Bächler Date: Thu, 3 Apr 2014 23:41:51 +0200 Subject: fstrim: add systemd units This adds a timer and a service for systemd that runs fstrim -a once a day. The Persistent=true option used will only work on systemd 212 or newer. --- sys-utils/fstrim.service.in | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 sys-utils/fstrim.service.in (limited to 'sys-utils/fstrim.service.in') diff --git a/sys-utils/fstrim.service.in b/sys-utils/fstrim.service.in new file mode 100644 index 000000000..52155d0b3 --- /dev/null +++ b/sys-utils/fstrim.service.in @@ -0,0 +1,6 @@ +[Unit] +Description=Discard unused blocks + +[Service] +Type=oneshot +ExecStart=@sbindir@/fstrim -a -- cgit v1.2.3-55-g7522