chiark / gitweb /
pkconfig: export full search path as .pc variable
authorLennart Poettering <lennart@poettering.net>
Wed, 9 Mar 2011 19:15:44 +0000 (20:15 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 9 Mar 2011 19:15:44 +0000 (20:15 +0100)
src/path-lookup.c
systemd.pc.in

index f094969..1a21ca0 100644 (file)
@@ -181,6 +181,8 @@ int lookup_paths_init(LookupPaths *p, ManagerRunningAs running_as) {
                                 return -ENOMEM;
                 } else
                         if (!(p->unit_path = strv_new(
+                                              /* If you modify this you also want to modify
+                                               * systemdsystemunitpath= in systemd.pc.in! */
                                               "/dev/.systemd/system",
                                               SYSTEM_CONFIG_UNIT_PATH,
                                               "/etc/systemd/system",
index 2049913..e939293 100644 (file)
@@ -11,6 +11,7 @@ systemdsystemunitdir=@systemunitdir@
 systemduserunitdir=@pkgdatadir@/user
 systemdsystemconfdir=@pkgsysconfdir@/system
 systemduserconfdir=@pkgsysconfdir@/user
+systemdsystemunitpath=/dev/.systemd/system:${systemdsystemconfdir}:/etc/systemd/system:/usr/local/share/systemd/system:/usr/share/systemd/system:/lib/systemd/system:${systemdsystemunitdir}
 
 Name: systemd
 Description: systemd System and Service Manager