]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: cli: put @master @<relative pid> @!<pid> in the help
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 26 Oct 2018 12:47:43 +0000 (14:47 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 28 Oct 2018 13:03:30 +0000 (14:03 +0100)
Add help for the prefix command of the CLI. These help only displays
from the CLI of the master.

src/cli.c

index f4c516728b30986226e53dbac63856f362048fee..4ed8b93f369cef6212d9133e5473b322237ef68a 100644 (file)
--- a/src/cli.c
+++ b/src/cli.c
@@ -2319,6 +2319,9 @@ static struct applet cli_applet = {
 
 /* register cli keywords */
 static struct cli_kw_list cli_kws = {{ },{
+       { { "@<relative pid>", NULL }, "@<relative pid> : send a command to the <relative pid> process", NULL, cli_io_handler_show_proc, NULL, NULL, ACCESS_MASTER_ONLY},
+       { { "@!<pid>", NULL }, "@!<pid>        : send a command to the <pid> process", cli_parse_default, NULL, NULL, NULL, ACCESS_MASTER_ONLY},
+       { { "@master", NULL }, "@master        : send a command to the master process", cli_parse_default, NULL, NULL, NULL, ACCESS_MASTER_ONLY},
        { { "help", NULL }, NULL, cli_parse_simple, NULL },
        { { "prompt", NULL }, NULL, cli_parse_simple, NULL },
        { { "quit", NULL }, NULL, cli_parse_simple, NULL },