mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-23 17:34:00 +03:00
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:
parent
6f47ad3025
commit
b7cf6049a3
@ -970,7 +970,7 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
<listitem>
|
||||
<para>Enter default mode. This is mostly equivalent to
|
||||
<command>start default.target</command>.</para>
|
||||
<command>isolate default.target</command>.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
|
@ -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])];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user