chiark / gitweb /
binfmt, modules-load, sysctl, tmpfiles: add missing ConditionDirectoryNotEmpty=
authorKay Sievers <kay.sievers@vrfy.org>
Sat, 30 Apr 2011 21:08:15 +0000 (23:08 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Sat, 30 Apr 2011 21:08:15 +0000 (23:08 +0200)
TODO
src/path-lookup.c
units/systemd-binfmt.service.in
units/systemd-modules-load.service.in
units/systemd-sysctl.service.in
units/systemd-tmpfiles-clean.service.in
units/systemd-tmpfiles-setup.service.in

diff --git a/TODO b/TODO
index 1537e2797d03d481a630172bb3c63f3c662d9b93..00bbc764e091ce7d444288038b7faefa474d7c70 100644 (file)
--- a/TODO
+++ b/TODO
@@ -35,11 +35,10 @@ Features:
 
 * add inode stat() check to readahead to suppress preloading changed files
 
-* include /usr/local/lib/tmpfiles.d in tmpfiles tool as search path
-  (and prefix/lib, in case it isn't one of the listed ones)
-
 * POSIX mqueue support in .socket units
 
+* allow list of pathes in config_parse_condition_path()
+
 * introduce dbus calls for enabling/disabling a service
 
 * support notifications for services being enabled/disabled
index b1c69814cade62115d1335087a0822dd970011dd..b45467c98df35f6ce6476c50d6dd8d282e40fb8d 100644 (file)
@@ -190,9 +190,7 @@ int lookup_paths_init(LookupPaths *p, ManagerRunningAs running_as) {
                                               "/run/systemd/system",
                                               SYSTEM_CONFIG_UNIT_PATH,
                                               "/etc/systemd/system",
-                                              "/usr/local/share/systemd/system",
                                               "/usr/local/lib/systemd/system",
-                                              "/usr/share/systemd/system",
                                               "/usr/lib/systemd/system",
                                               "/lib/systemd/system",
                                               SYSTEM_DATA_UNIT_PATH,
index 0bf6df2011eacda499af0a4729b3c8d6a1cbd71a..d43497c151955b8466ba5a96ea3e1100884c9a2d 100644 (file)
@@ -11,7 +11,10 @@ DefaultDependencies=no
 Conflicts=shutdown.target
 After=systemd-readahead-collect.service systemd-readahead-replay.service proc-sys-fs-binfmt_misc.automount
 Before=sysinit.target shutdown.target
-ConditionDirectoryNotEmpty=/etc/binfmt.d
+ConditionDirectoryNotEmpty=|/usr/lib/binfmt.d
+ConditionDirectoryNotEmpty=|/usr/local/lib/binfmt.d
+ConditionDirectoryNotEmpty=|/etc/binfmt.d
+ConditionDirectoryNotEmpty=|/run/binfmt.d
 
 [Service]
 Type=oneshot
index 739729e6924f06373dfa19290c5f33b181f1a817..5dc373d208e3f460e9d973b2e264562825846b3b 100644 (file)
@@ -11,7 +11,11 @@ DefaultDependencies=no
 Conflicts=shutdown.target
 After=systemd-readahead-collect.service systemd-readahead-replay.service
 Before=sysinit.target shutdown.target
-ConditionDirectoryNotEmpty=/etc/modules-load.d
+ConditionDirectoryNotEmpty=|/lib/modules-load.d
+ConditionDirectoryNotEmpty=|/usr/lib/modules-load.d
+ConditionDirectoryNotEmpty=|/usr/local/lib/modules-load.d
+ConditionDirectoryNotEmpty=|/etc/modules-load.d
+ConditionDirectoryNotEmpty=|/run/modules-load.d
 
 [Service]
 Type=oneshot
index ea78230d7c0d04a123ec792840dad65985db1484..6d53422630adbd22a2431dcaf0d9d5f860a78777 100644 (file)
@@ -12,7 +12,11 @@ Conflicts=shutdown.target
 After=systemd-readahead-collect.service systemd-readahead-replay.service
 Before=sysinit.target shutdown.target
 ConditionPathExists=|/etc/sysctl.conf
+ConditionDirectoryNotEmpty=|/lib/sysctl.d
+ConditionDirectoryNotEmpty=|/usr/lib/sysctl.d
+ConditionDirectoryNotEmpty=|/usr/local/lib/sysctl.d
 ConditionDirectoryNotEmpty=|/etc/sysctl.d
+ConditionDirectoryNotEmpty=|/run/sysctl.d
 
 [Service]
 Type=oneshot
index 002daf661b7b23ddea6b4fa9ae20ee5d0ffe2834..3c8e72ebf589640b1796ff00299cdd662f13826e 100644 (file)
@@ -11,7 +11,10 @@ DefaultDependencies=no
 Wants=local-fs.target
 After=systemd-readahead-collect.service systemd-readahead-replay.service local-fs.target
 Before=sysinit.target shutdown.target
-ConditionPathExists=/etc/tmpfiles.d
+ConditionDirectoryNotEmpty=|/usr/lib/tmpfiles.d
+ConditionDirectoryNotEmpty=|/usr/local/lib/tmpfiles.d
+ConditionDirectoryNotEmpty=|/etc/tmpfiles.d
+ConditionDirectoryNotEmpty=|/run/tmpfiles.d
 
 [Service]
 Type=oneshot
index b43f6f5a04344ca51606a79f26174d762e5372ba..f90121e12e98653f8e2c16b620b1642fcc550797 100644 (file)
@@ -11,7 +11,10 @@ DefaultDependencies=no
 Wants=local-fs.target
 After=systemd-readahead-collect.service systemd-readahead-replay.service local-fs.target
 Before=sysinit.target shutdown.target
-ConditionPathExists=/etc/tmpfiles.d
+ConditionDirectoryNotEmpty=|/usr/lib/tmpfiles.d
+ConditionDirectoryNotEmpty=|/usr/local/lib/tmpfiles.d
+ConditionDirectoryNotEmpty=|/etc/tmpfiles.d
+ConditionDirectoryNotEmpty=|/run/tmpfiles.d
 
 [Service]
 Type=oneshot