X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fpath-lookup.c;h=2590eb3abfc8aeed823c8f34ec3fe6bb2abc152c;hb=6398bea5d22a1d53f2fdabbf6fa4dc6f4ac1b6f4;hp=093e04de37d02d61566cb0b44be3379d0c440da5;hpb=8745297f9853c4a17bac69e1b7e652fe81bc1940;p=elogind.git diff --git a/src/path-lookup.c b/src/path-lookup.c index 093e04de3..2590eb3ab 100644 --- a/src/path-lookup.c +++ b/src/path-lookup.c @@ -182,12 +182,14 @@ int lookup_paths_init(LookupPaths *p, ManagerRunningAs running_as) { } else if (!(p->unit_path = strv_new( SYSTEM_CONFIG_UNIT_PATH, /* /etc/systemd/system/ */ + "/usr/local/share/systemd/system", + "/usr/share/systemd/system", SYSTEM_DATA_UNIT_PATH, /* /lib/systemd/system/ */ NULL))) return -ENOMEM; } - if (running_as == MANAGER_INIT) { + if (running_as == MANAGER_SYSTEM) { /* /etc/init.d/ compatibility does not matter to users */ if ((e = getenv("SYSTEMD_SYSVINIT_PATH")))