]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemctl: actually honour the try-reload-or-restart verb aabf5d4243408 promised 2465/head
authorLennart Poettering <lennart@poettering.net>
Fri, 29 Jan 2016 14:17:23 +0000 (15:17 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 29 Jan 2016 14:49:05 +0000 (15:49 +0100)
The verb entry got lost in the ultimate commit.

src/systemctl/systemctl.c

index 1dab97678b6ce2cc591a7e1be995db43cd7fbf64..078c1b5ea49684d73d0662ab12d4ee7c7044174a 100644 (file)
@@ -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 */