diff options
author | Thomas Bächler | 2014-04-03 23:41:51 +0200 |
---|---|---|
committer | Karel Zak | 2014-04-07 12:38:18 +0200 |
commit | 877cd8944beda33102dd1a288f51c07b4bbf9278 (patch) | |
tree | b3a8f0ee9340958c4e8c9e791f96b80ded0695ad /sys-utils/fstrim.service.in | |
parent | login: fix minor typos in the man page (diff) | |
download | kernel-qcow2-util-linux-877cd8944beda33102dd1a288f51c07b4bbf9278.tar.gz kernel-qcow2-util-linux-877cd8944beda33102dd1a288f51c07b4bbf9278.tar.xz kernel-qcow2-util-linux-877cd8944beda33102dd1a288f51c07b4bbf9278.zip |
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.
Diffstat (limited to 'sys-utils/fstrim.service.in')
-rw-r--r-- | sys-utils/fstrim.service.in | 6 |
1 files changed, 6 insertions, 0 deletions
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 |