diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-03-01 22:19:08 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-03-01 22:20:13 +0100 |
commit | 64e5f1b721d76948e2987f65841dc087f684e1de (patch) | |
tree | cde1e5bb9e11a0be5a5b87e8adcd0a9a483210b6 /src/systemctl.c | |
parent | 6221fcdf2ec74b6a71a4d59ca5ec80fa2b214c45 (diff) |
systemctl: add condreload alias for compat with ALTLinux
Diffstat (limited to 'src/systemctl.c')
-rw-r--r-- | src/systemctl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/systemctl.c b/src/systemctl.c index c08e78c26d..c3f47a1381 100644 --- a/src/systemctl.c +++ b/src/systemctl.c @@ -1421,6 +1421,7 @@ static int start_unit(DBusConnection *bus, char **args, unsigned n) { streq(args[0], "condrestart") ? "TryRestartUnit" : streq(args[0], "reload-or-restart") ? "ReloadOrRestartUnit" : streq(args[0], "reload-or-try-restart") || + streq(args[0], "condreload") || streq(args[0], "force-reload") ? "ReloadOrTryRestartUnit" : "StartUnit"; @@ -5166,6 +5167,7 @@ static int systemctl_main(DBusConnection *bus, int argc, char *argv[], DBusError { "reload-or-restart", MORE, 2, start_unit }, { "reload-or-try-restart", MORE, 2, start_unit }, { "force-reload", MORE, 2, start_unit }, /* For compatibility with SysV */ + { "condreload", MORE, 2, start_unit }, /* For compatibility with ALTLinux */ { "condrestart", MORE, 2, start_unit }, /* For compatibility with RH */ { "isolate", EQUAL, 2, start_unit }, { "kill", MORE, 2, kill_unit }, |