summaryrefslogtreecommitdiff
path: root/src/systemctl.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-09-14 02:22:55 +0200
committerLennart Poettering <lennart@poettering.net>2010-09-14 02:22:55 +0200
commit6f0d624ec785409ad82c2e3afb786d977f2b1c87 (patch)
treec270b54f86454ae2dbbb4796c6015bc1331b6a8f /src/systemctl.c
parente43ac8788b340a5d01c9c7e4c93c70d6b06a316d (diff)
systemctl: use isolate when called as telinit for a runlevel
Diffstat (limited to 'src/systemctl.c')
-rw-r--r--src/systemctl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/systemctl.c b/src/systemctl.c
index 627b9055ae..1f93bc974a 100644
--- a/src/systemctl.c
+++ b/src/systemctl.c
@@ -1254,7 +1254,11 @@ static int start_unit(DBusConnection *bus, char **args, unsigned n) {
method = "StartUnit";
mode = (arg_action == ACTION_EMERGENCY ||
- arg_action == ACTION_RESCUE) ? "isolate" : "replace";
+ arg_action == ACTION_RESCUE ||
+ arg_action == ACTION_RUNLEVEL2 ||
+ arg_action == ACTION_RUNLEVEL3 ||
+ arg_action == ACTION_RUNLEVEL4 ||
+ arg_action == ACTION_RUNLEVEL5) ? "isolate" : "replace";
one_name = table[arg_action];
}