]> err.no Git - systemd/commitdiff
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 f094969adaf9c1a2224b66443a904edae9defa3b..1a21ca078ad8f74c50f73223b0cd57a4877704d6 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 204991309bd3b2779ecc021c3c08ffc9cbc7194e..e939293a4c794eea0fc98fa50597dd19fed2fca2 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