From 6f0d624ec785409ad82c2e3afb786d977f2b1c87 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 14 Sep 2010 02:22:55 +0200 Subject: systemctl: use isolate when called as telinit for a runlevel --- src/systemctl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/systemctl.c') 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]; } -- cgit v1.2.3-54-g00ecf