1
1
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:
Michal Schmidt 2013-02-22 09:56:16 +01:00
parent 6f47ad3025
commit b7cf6049a3
2 changed files with 3 additions and 2 deletions

View File

@ -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>

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])];