Skip to content

Commit

Permalink
systemd: include /etc/systemd/system/ and /lib/systemd/system/ in sea…
Browse files Browse the repository at this point in the history
…rch path unconditionally
  • Loading branch information
poettering committed Jul 1, 2010
1 parent 0d624a7 commit c0115b1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/path-lookup.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,12 @@ int lookup_paths_init(LookupPaths *p, ManagerRunningAs running_as) {
return -ENOMEM;
} else
if (!(p->unit_path = strv_new(
SYSTEM_CONFIG_UNIT_PATH, /* /etc/systemd/system/ */
SYSTEM_CONFIG_UNIT_PATH,
"/etc/systemd/system",
"/usr/local/share/systemd/system",
"/usr/share/systemd/system",
SYSTEM_DATA_UNIT_PATH, /* /lib/systemd/system/ */
"/lib/systemd/system",
SYSTEM_DATA_UNIT_PATH,
NULL)))
return -ENOMEM;
}
Expand Down

0 comments on commit c0115b1

Please sign in to comment.