summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2013-02-22 09:56:16 +0100
committerMichal Schmidt <mschmidt@redhat.com>2013-02-22 16:06:17 +0100
commitb7cf6049a36dfd8e5f3c6420243eb49d348dbd2f (patch)
treede8482ea9bdc2cfe2312d96e463f540fb74630bd /src
parent6f47ad30250cf467065a19105013321ee4973694 (diff)
systemctl: make "systemctl default" use "isolate" job mode
"systemctl default" should behave identically to "telinit N" (where N is the corresponding runlevel target number), therefore it should use isolate job mode too.
Diffstat (limited to 'src')
-rw-r--r--src/systemctl/systemctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index 509651c1f..0f19c25ce 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -1598,7 +1598,8 @@ static int start_unit(DBusConnection *bus, char **args) {
mode =
(streq(args[0], "isolate") ||
streq(args[0], "rescue") ||
- streq(args[0], "emergency")) ? "isolate" : arg_job_mode;
+ streq(args[0], "emergency") ||
+ streq(args[0], "default")) ? "isolate" : arg_job_mode;
one_name = table[verb_to_action(args[0])];