From: Michal Schmidt Date: Fri, 22 Feb 2013 08:56:16 +0000 (+0100) Subject: systemctl: make "systemctl default" use "isolate" job mode X-Git-Tag: v198~196 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=b7cf6049a36dfd8e5f3c6420243eb49d348dbd2f 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. --- diff --git a/man/systemctl.xml b/man/systemctl.xml index 683f2e740..c233543d7 100644 --- a/man/systemctl.xml +++ b/man/systemctl.xml @@ -970,7 +970,7 @@ along with systemd; If not, see . Enter default mode. This is mostly equivalent to - start default.target. + isolate default.target. 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])];