chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
service: properly notice when services with a main process that isn't a child of...
[elogind.git]
/
src
/
systemctl.c
diff --git
a/src/systemctl.c
b/src/systemctl.c
index d1d73bfa01397d5af617dbd69d6cd39454db13f3..10c6319b4e840a21c8786eaadb74bfa5f1d89f6c 100644
(file)
--- a/
src/systemctl.c
+++ b/
src/systemctl.c
@@
-4157,8
+4157,7
@@
static int install_info_apply(const char *verb, LookupPaths *paths, InstallInfo
if (streq(verb, "is-enabled") &&
strv_isempty(i->aliases) &&
strv_isempty(i->wanted_by) &&
- (path_startswith(filename, "/lib") ||
- path_startswith(filename, "/usr")))
+ !path_startswith(filename, "/etc"))
return 1;
i->path = filename;