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;
|
||||
|
@@ -471,7 +471,8 @@ svc_wait(const char *svc)
|
||||
|
||||
/* Some services don't have a timeout, like fsck */
|
||||
keywords = rc_deptree_depend(deptree, svc, "keyword");
|
||||
if (rc_stringlist_find(keywords, "notimeout"))
|
||||
if (rc_stringlist_find(keywords, "-timeout") ||
|
||||
rc_stringlist_find(keywords, "notimeout"))
|
||||
forever = true;
|
||||
rc_stringlist_free(keywords);
|
||||
|
||||
|
Reference in New Issue
Block a user