From: Lennart Poettering Date: Fri, 29 Jan 2016 14:17:23 +0000 (+0100) Subject: systemctl: actually honour the try-reload-or-restart verb aabf5d4243408 promised X-Git-Tag: v229~62^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d152dd467afe0eacb322900ea7f91946c55c40e9;p=thirdparty%2Fsystemd.git systemctl: actually honour the try-reload-or-restart verb aabf5d4243408 promised The verb entry got lost in the ultimate commit. --- diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 1dab97678b6..078c1b5ea49 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -7340,7 +7340,8 @@ static int systemctl_main(int argc, char *argv[]) { { "restart", 2, VERB_ANY, VERB_NOCHROOT, start_unit }, { "try-restart", 2, VERB_ANY, VERB_NOCHROOT, start_unit }, { "reload-or-restart", 2, VERB_ANY, VERB_NOCHROOT, start_unit }, - { "reload-or-try-restart", 2, VERB_ANY, VERB_NOCHROOT, start_unit }, + { "reload-or-try-restart", 2, VERB_ANY, VERB_NOCHROOT, start_unit }, /* For compatbility with old systemctl <= 228 */ + { "try-reload-or-restart", 2, VERB_ANY, VERB_NOCHROOT, start_unit }, { "force-reload", 2, VERB_ANY, VERB_NOCHROOT, start_unit }, /* For compatibility with SysV */ { "condreload", 2, VERB_ANY, VERB_NOCHROOT, start_unit }, /* For compatibility with ALTLinux */ { "condrestart", 2, VERB_ANY, VERB_NOCHROOT, start_unit }, /* For compatibility with RH */