[systemd-commits] 2 commits - Makefile.am TODO configure.ac units/.gitignore units/quotaon.service units/quotaon.service.in units/systemd-quotacheck.service.in

Lennart Poettering lennart at kemper.freedesktop.org
Mon Sep 10 16:45:35 PDT 2012


 Makefile.am                         |    6 ++++++
 TODO                                |    2 ++
 configure.ac                        |    3 +++
 units/.gitignore                    |    1 +
 units/quotaon.service               |   19 -------------------
 units/quotaon.service.in            |   19 +++++++++++++++++++
 units/systemd-quotacheck.service.in |    2 +-
 7 files changed, 32 insertions(+), 20 deletions(-)

New commits:
commit 4a30847b9d71e0381948d68279c8f775b9de7850
Author: Lennart Poettering <lennart at poettering.net>
Date:   Tue Sep 11 01:45:27 2012 +0200

    update TODO

diff --git a/TODO b/TODO
index 10de80f..4371c73 100644
--- a/TODO
+++ b/TODO
@@ -49,6 +49,8 @@ Bugfixes:
 
 Features:
 
+* move PID 1 segfaults to /var/lib/systemd/coredump?
+
 * Document word splitting syntax for ExecStart= and friends
 
 * merge: github.com/systemd/python-systemd

commit b51fc639f01ee6194af3e7e944a79accce474fe1
Author: Dave Reisner <dreisner at archlinux.org>
Date:   Sun Sep 2 17:28:30 2012 -0400

    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.

diff --git a/Makefile.am b/Makefile.am
index 135d9f8..730db1d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -382,6 +382,7 @@ EXTRA_DIST += \
 	units/debug-shell.service.in \
 	units/systemd-hibernate.service.in \
 	units/systemd-suspend.service.in \
+	units/quotaon.service.in \
 	introspect.awk \
 	man/custom-html.xsl
 
@@ -2794,6 +2795,9 @@ endif
 EXTRA_DIST += \
 	units/systemd-quotacheck.service.in
 
+nodist_systemunit_DATA += \
+	units/quotaon.service
+
 # ------------------------------------------------------------------------------
 if ENABLE_RANDOMSEED
 rootlibexec_PROGRAMS += \
@@ -3427,6 +3431,8 @@ SED_PROCESS = \
 		-e 's, at rootprefix\@,$(rootprefix),g' \
 		-e 's, at udevlibexecdir\@,$(udevlibexecdir),g' \
 		-e 's, at sushell\@,$(sushell),g' \
+		-e 's, at QUOTAON\@,$(QUOTAON),g' \
+		-e 's, at QUOTACHECK\@,$(QUOTACHECK),g' \
 		< $< > $@
 
 units/%: units/%.in Makefile
diff --git a/configure.ac b/configure.ac
index f1b8838..b132499 100644
--- a/configure.ac
+++ b/configure.ac
@@ -64,6 +64,9 @@ AC_PROG_GCC_TRADITIONAL
 AC_PATH_PROG([M4], [m4])
 AC_PATH_PROG([XSLTPROC], [xsltproc])
 
+AC_PATH_PROG([QUOTAON], [quotaon], [/sbin/quotaon])
+AC_PATH_PROG([QUOTACHECK], [quotacheck], [/sbin/quotacheck])
+
 # gtkdocize greps for '^GTK_DOC_CHECK', so it needs to be on its own line
 m4_ifdef([GTK_DOC_CHECK], [
 GTK_DOC_CHECK([1.18],[--flavour no-tmpl])
diff --git a/units/.gitignore b/units/.gitignore
index de51179..74bff54 100644
--- a/units/.gitignore
+++ b/units/.gitignore
@@ -14,6 +14,7 @@
 /rescue.service
 /systemd-ask-password-wall.service
 /systemd-quotacheck.service
+/quotaon.service
 /systemd-fsck at .service
 /systemd-fsck-root.service
 /systemd-tmpfiles-clean.service
diff --git a/units/quotaon.service b/units/quotaon.service
deleted file mode 100644
index caaf12d..0000000
--- a/units/quotaon.service
+++ /dev/null
@@ -1,19 +0,0 @@
-#  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=/sbin/quotaon
-
-[Service]
-Type=oneshot
-RemainAfterExit=yes
-ExecStart=/sbin/quotaon -aug
diff --git a/units/quotaon.service.in b/units/quotaon.service.in
new file mode 100644
index 0000000..49a50a7
--- /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
diff --git a/units/systemd-quotacheck.service.in b/units/systemd-quotacheck.service.in
index 319a3ce..f726ea1 100644
--- a/units/systemd-quotacheck.service.in
+++ b/units/systemd-quotacheck.service.in
@@ -11,7 +11,7 @@ Documentation=man:systemd-quotacheck.service(8)
 DefaultDependencies=no
 After=systemd-readahead-collect.service systemd-readahead-replay.service systemd-remount-fs.service
 Before=local-fs.target shutdown.target
-ConditionPathExists=/sbin/quotacheck
+ConditionPathExists=@QUOTACHECK@
 
 [Service]
 Type=oneshot



More information about the systemd-commits mailing list