summaryrefslogtreecommitdiff
path: root/src/rc/rc.c
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 /src/rc/rc.c
parentabe94bec6f1300838212cf70b4afe08a943539da (diff)
downloadopenrc-28d7fb9430401d1d2947cd75672f03562582bb08.tar.gz
openrc-28d7fb9430401d1d2947cd75672f03562582bb08.tar.bz2
openrc-28d7fb9430401d1d2947cd75672f03562582bb08.tar.xz
When stopping services, check the newlevel if given otherwise the current runlevel. Fixes #100.
Diffstat (limited to 'src/rc/rc.c')
-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 62544ca..35dc53f 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;