summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-07-23 05:24:45 +0200
committerLennart Poettering <lennart@poettering.net>2010-07-23 05:24:45 +0200
commit9d8a57fff160cc14873ebcbc79a4216a18b42f70 (patch)
treebce2704509231dc4a1d6641d3d7661e46decf917 /src
parent85e5760d4ffe99d578caf085ca0608b2bb2d4889 (diff)
systemctl: support force-reload and condrestart as aliases for reload-or-try-restart
Diffstat (limited to 'src')
-rw-r--r--src/systemctl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/systemctl.c b/src/systemctl.c
index de928c5661..667aeaeb96 100644
--- a/src/systemctl.c
+++ b/src/systemctl.c
@@ -1087,7 +1087,9 @@ static int start_unit(DBusConnection *bus, char **args, unsigned n) {
streq(args[0], "restart") ? "RestartUnit" :
streq(args[0], "try-restart") ? "TryRestartUnit" :
streq(args[0], "reload-or-restart") ? "ReloadOrRestartUnit" :
- streq(args[0], "reload-or-try-restart") ? "ReloadOrTryRestartUnit" :
+ streq(args[0], "reload-or-try-restart") ||
+ streq(args[0], "force-reload") ||
+ streq(args[0], "condrestart") ? "ReloadOrTryRestartUnit" :
"StartUnit";
mode =
@@ -3660,6 +3662,8 @@ static int systemctl_main(DBusConnection *bus, int argc, char *argv[]) {
{ "try-restart", MORE, 2, start_unit },
{ "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 */
+ { "condrestart", MORE, 2, start_unit }, /* For compatibility with RH */
{ "isolate", EQUAL, 2, start_unit },
{ "check", MORE, 2, check_unit },
{ "show", MORE, 1, show },