From b51fc639f01ee6194af3e7e944a79accce474fe1 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 2 Sep 2012 17:28:30 -0400 Subject: build-sys: perform autodetection of quota-tools binaries Use AC_PATH_PROG to try and locate the quotaon and quotacheck binaries, falling back on hardcoded defaults when they can't be found. --- units/quotaon.service.in | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 units/quotaon.service.in (limited to 'units/quotaon.service.in') diff --git a/units/quotaon.service.in b/units/quotaon.service.in new file mode 100644 index 0000000000..49a50a7feb --- /dev/null +++ b/units/quotaon.service.in @@ -0,0 +1,19 @@ +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. + +[Unit] +Description=Enable File System Quotas +Documentation=man:quotaon(8) +DefaultDependencies=no +After=systemd-readahead-collect.service systemd-readahead-replay.service systemd-quotacheck.service +Before=local-fs.target shutdown.target +ConditionPathExists=@QUOTAON@ + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=@QUOTAON@ -aug -- cgit v1.2.3-54-g00ecf