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/Makemodule.am | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys-utils/Makemodule.am') 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 -- cgit v1.2.3-55-g7522