summaryrefslogtreecommitdiff
path: root/src/machine/machinectl.c
diff options
context:
space:
mode:
authorChristian Rebischke <Chris.Rebischke@posteo.de>2016-06-06 17:06:20 +0200
committerLennart Poettering <lennart@poettering.net>2016-06-06 17:06:20 +0200
commitb2bb19bbda8f5ab3ab497165bc52a0ef952348c4 (patch)
tree3e9ec474a8e9513243b4a40c6562976de39c7b99 /src/machine/machinectl.c
parent45819e7cbfe5bd9044faca0f1e6e1145d7c0cfaa (diff)
machinectl: Added stop as alias for poweroff (#3406)
Diffstat (limited to 'src/machine/machinectl.c')
-rw-r--r--src/machine/machinectl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/machine/machinectl.c b/src/machine/machinectl.c
index 8e4ffa9a39..afe5026373 100644
--- a/src/machine/machinectl.c
+++ b/src/machine/machinectl.c
@@ -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 },