machinectl: add restart convenience alias (#30625)

This commit is contained in:
Chris Simons
2023-12-28 07:09:42 +09:00
committed by GitHub
parent 1a4b0459f6
commit 9ef362bf3d
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -2945,6 +2945,7 @@ static int machinectl_main(int argc, char *argv[], sd_bus *bus) {
{ "show-image", VERB_ANY, VERB_ANY, 0, show_image },
{ "terminate", 2, VERB_ANY, 0, terminate_machine },
{ "reboot", 2, VERB_ANY, 0, reboot_machine },
{ "restart", 2, VERB_ANY, 0, reboot_machine }, /* Convenience alias */
{ "poweroff", 2, VERB_ANY, 0, poweroff_machine },
{ "stop", 2, VERB_ANY, 0, poweroff_machine }, /* Convenience alias */
{ "kill", 2, VERB_ANY, 0, kill_machine },