mirror of
https://github.com/morgan9e/systemd
synced 2026-04-16 01:16:10 +09: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:
@@ -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])];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user