mirror of
https://github.com/systemd/systemd.git
synced 2024-11-06 08:26:52 +03:00
systemctl: accept condstop as alias for stop
This commit is contained in:
parent
e677657e8d
commit
a76f7be2b0
@ -1420,7 +1420,8 @@ static int start_unit(DBusConnection *bus, char **args, unsigned n) {
|
||||
|
||||
if (arg_action == ACTION_SYSTEMCTL) {
|
||||
method =
|
||||
streq(args[0], "stop") ? "StopUnit" :
|
||||
streq(args[0], "stop") ||
|
||||
streq(args[0], "condstop") ? "StopUnit" :
|
||||
streq(args[0], "reload") ? "ReloadUnit" :
|
||||
streq(args[0], "restart") ? "RestartUnit" :
|
||||
|
||||
@ -5235,6 +5236,7 @@ static int systemctl_main(DBusConnection *bus, int argc, char *argv[], DBusError
|
||||
{ "cancel", MORE, 2, cancel_job },
|
||||
{ "start", MORE, 2, start_unit },
|
||||
{ "stop", MORE, 2, start_unit },
|
||||
{ "condstop", MORE, 2, start_unit }, /* For compatibility with ALTLinux */
|
||||
{ "reload", MORE, 2, start_unit },
|
||||
{ "restart", MORE, 2, start_unit },
|
||||
{ "try-restart", MORE, 2, start_unit },
|
||||
|
Loading…
Reference in New Issue
Block a user