machinectl: Added stop as alias for poweroff (#3406)

This commit is contained in:
Christian Rebischke
2016-06-06 17:06:20 +02:00
committed by Lennart Poettering
parent 45819e7cbf
commit b2bb19bbda
4 changed files with 6 additions and 5 deletions
+1
View File
@@ -2720,6 +2720,7 @@ static int machinectl_main(int argc, char *argv[], sd_bus *bus) {
{ "terminate", 2, VERB_ANY, 0, terminate_machine },
{ "reboot", 2, VERB_ANY, 0, reboot_machine },
{ "poweroff", 2, VERB_ANY, 0, poweroff_machine },
{ "stop", 2, VERB_ANY, 0, poweroff_machine }, /* Convenience alias */
{ "kill", 2, VERB_ANY, 0, kill_machine },
{ "login", VERB_ANY, 2, 0, login_machine },
{ "shell", VERB_ANY, VERB_ANY, 0, shell_machine },