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/Makemodule.am | |
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/Makemodule.am')
-rw-r--r-- | sys-utils/Makemodule.am | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys-utils/Makemodule.am b/sys-utils/Makemodule.am index ae254a3a1..1c2b210a1 100644 --- a/sys-utils/Makemodule.am +++ b/sys-utils/Makemodule.am @@ -53,8 +53,14 @@ dist_man_MANS += sys-utils/fstrim.8 fstrim_SOURCES = sys-utils/fstrim.c fstrim_LDADD = $(LDADD) libcommon.la libmount.la fstrim_CFLAGS = $(AM_CFLAGS) -I$(ul_libmount_incdir) +systemdsystemunit_DATA += \ + sys-utils/fstrim.service \ + sys-utils/fstrim.timer endif +PATHFILES += \ + sys-utils/fstrim.service + if LINUX # # Linux-only utils with no another dependencies. All another dependencies have |