We should use -feature instead of nofeature.
This matches the ifconfig and Gentoo USE flag syntax and is hopefully easier to read. Fixes #178.
This commit is contained in:
@ -600,8 +600,11 @@ do_stop_services(const char *newlevel, bool parallel, bool going_down)
|
||||
continue;
|
||||
}
|
||||
kwords = rc_deptree_depend(deptree, service->value, "keyword");
|
||||
if (rc_stringlist_find(kwords, "nostop") ||
|
||||
(going_down && rc_stringlist_find(kwords, "noshutdown")))
|
||||
if (rc_stringlist_find(kwords, "-stop") ||
|
||||
rc_stringlist_find(kwords, "nostop") ||
|
||||
(going_down &&
|
||||
(rc_stringlist_find(kwords, "-shutdown") ||
|
||||
rc_stringlist_find(kwords, "noshutdown"))))
|
||||
nstop = true;
|
||||
else
|
||||
nstop = false;
|
||||
|
Reference in New Issue
Block a user