aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;