X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fsystemctl.c;h=1f93bc974aec3c7002cc7339adc1e5e8bd2a4d4d;hb=6f0d624ec785409ad82c2e3afb786d977f2b1c87;hp=627b9055aeb9f71eb020568b83db2b0a04fd0d7d;hpb=e43ac8788b340a5d01c9c7e4c93c70d6b06a316d;p=elogind.git diff --git a/src/systemctl.c b/src/systemctl.c index 627b9055a..1f93bc974 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]; }