mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +00:00
machinectl: add restart
convenience alias (#30625)
This commit is contained in:
parent
1a4b0459f6
commit
9ef362bf3d
|
@ -279,7 +279,8 @@
|
||||||
trigger a reboot by sending SIGINT to the container's init
|
trigger a reboot by sending SIGINT to the container's init
|
||||||
process, which is roughly equivalent to pressing Ctrl+Alt+Del
|
process, which is roughly equivalent to pressing Ctrl+Alt+Del
|
||||||
on a non-containerized system, and is compatible with
|
on a non-containerized system, and is compatible with
|
||||||
containers running any system manager.</para>
|
containers running any system manager. Use <command>restart</command> as alias
|
||||||
|
for <command>reboot</command>.</para>
|
||||||
|
|
||||||
<xi:include href="version-info.xml" xpointer="v209"/></listitem>
|
<xi:include href="version-info.xml" xpointer="v209"/></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
|
@ -2945,6 +2945,7 @@ static int machinectl_main(int argc, char *argv[], sd_bus *bus) {
|
||||||
{ "show-image", VERB_ANY, VERB_ANY, 0, show_image },
|
{ "show-image", VERB_ANY, VERB_ANY, 0, show_image },
|
||||||
{ "terminate", 2, VERB_ANY, 0, terminate_machine },
|
{ "terminate", 2, VERB_ANY, 0, terminate_machine },
|
||||||
{ "reboot", 2, VERB_ANY, 0, reboot_machine },
|
{ "reboot", 2, VERB_ANY, 0, reboot_machine },
|
||||||
|
{ "restart", 2, VERB_ANY, 0, reboot_machine }, /* Convenience alias */
|
||||||
{ "poweroff", 2, VERB_ANY, 0, poweroff_machine },
|
{ "poweroff", 2, VERB_ANY, 0, poweroff_machine },
|
||||||
{ "stop", 2, VERB_ANY, 0, poweroff_machine }, /* Convenience alias */
|
{ "stop", 2, VERB_ANY, 0, poweroff_machine }, /* Convenience alias */
|
||||||
{ "kill", 2, VERB_ANY, 0, kill_machine },
|
{ "kill", 2, VERB_ANY, 0, kill_machine },
|
||||||
|
|
Loading…
Reference in a new issue