summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/path-lookup.c2
-rw-r--r--systemd.pc.in1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/path-lookup.c b/src/path-lookup.c
index f094969ada..1a21ca078a 100644
--- a/src/path-lookup.c
+++ b/src/path-lookup.c
@@ -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",
diff --git a/systemd.pc.in b/systemd.pc.in
index 204991309b..e939293a4c 100644
--- a/systemd.pc.in
+++ b/systemd.pc.in
@@ -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