summaryrefslogtreecommitdiffstats
path: root/sys-utils/Makemodule.am
diff options
context:
space:
mode:
authorThomas Bächler2014-04-03 23:41:51 +0200
committerKarel Zak2014-04-07 12:38:18 +0200
commit877cd8944beda33102dd1a288f51c07b4bbf9278 (patch)
treeb3a8f0ee9340958c4e8c9e791f96b80ded0695ad /sys-utils/Makemodule.am
parentlogin: fix minor typos in the man page (diff)
downloadkernel-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.am6
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