aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-09-27 16:56:03 +0000
committerRoy Marples <roy@marples.name>2008-09-27 16:56:03 +0000
commit28d7fb9430401d1d2947cd75672f03562582bb08 (patch)
tree1c7b75f66b59f3be0da2d89422f0a29739a16388
parentabe94bec6f1300838212cf70b4afe08a943539da (diff)
When stopping services, check the newlevel if given otherwise the current runlevel. Fixes #100.
-rw-r--r--src/rc/rc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rc/rc.c b/src/rc/rc.c
index 62544cad..35dc53f2 100644
--- a/src/rc/rc.c
+++ b/src/rc/rc.c
@@ -805,7 +805,7 @@ static void do_stop_services(const char *newlevel, bool going_down, bool paralle
tmplist = rc_stringlist_new();
rc_stringlist_add(tmplist, service->value);
deporder = rc_deptree_depends(deptree, types_n, tmplist,
- runlevel,
+ newlevel ? newlevel : runlevel,
RC_DEP_STRICT | RC_DEP_TRACE);
rc_stringlist_free(tmplist);
svc2 = NULL;