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.
This commit is contained in:
Michal Schmidt
2013-02-22 16:06:17 +01:00
parent 6f47ad3025
commit b7cf6049a3
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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])];