aboutsummaryrefslogtreecommitdiff
path: root/src/rc/rc.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-07-01 00:07:32 +0100
committerRoy Marples <roy@marples.name>2009-07-01 00:07:32 +0100
commitb4104957b198b38aba609ed3889e7fa605012d19 (patch)
tree0adad424aa3e5f5ab6fa6cb4f48f9ac9323dc29a /src/rc/rc.c
parent6abeec74301d8406ebbbd653b9fe9a0e234c09bf (diff)
We should use -feature instead of nofeature.
This matches the ifconfig and Gentoo USE flag syntax and is hopefully easier to read. Fixes #178.
Diffstat (limited to 'src/rc/rc.c')
-rw-r--r--src/rc/rc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/rc/rc.c b/src/rc/rc.c
index 3d8628e8..6d04b3dd 100644
--- a/src/rc/rc.c
+++ b/src/rc/rc.c
@@ -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;