From: oetiker Date: Sat, 8 Nov 2008 18:01:33 +0000 (+0000) Subject: document the "QUIT" command -- kevin X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f090c6d208157d252bf806fea2107b9e318424d4;p=rrdtool.git document the "QUIT" command -- kevin git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1658 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/doc/rrdcached.pod b/doc/rrdcached.pod index d8f0c73..a346d60 100644 --- a/doc/rrdcached.pod +++ b/doc/rrdcached.pod @@ -458,6 +458,10 @@ message itself. The first user command after B is command number one. server: 1 message for command 1 server: 12 message for command 12 +=item B + +Disconnect from rrdcached. + =back =head2 Performance Values diff --git a/src/rrd_daemon.c b/src/rrd_daemon.c index 5231942..f9ef51f 100644 --- a/src/rrd_daemon.c +++ b/src/rrd_daemon.c @@ -1079,6 +1079,7 @@ static int handle_request_help (listen_socket_t *sock, /* {{{ */ "UPDATE [ ...]\n" "BATCH\n" "STATS\n" + "QUIT\n" }; char *help_flush[2] = @@ -1167,6 +1168,13 @@ static int handle_request_help (listen_socket_t *sock, /* {{{ */ "For more information, consult the rrdcached(1) documentation.\n" }; + char *help_quit[2] = + { + "Help for QUIT\n" + , + "Disconnect from rrdcached.\n" + }; + status = buffer_get_field (&buffer, &buffer_size, &command); if (status != 0) help_text = help_help; @@ -1186,6 +1194,8 @@ static int handle_request_help (listen_socket_t *sock, /* {{{ */ help_text = help_stats; else if (strcasecmp (command, "batch") == 0) help_text = help_batch; + else if (strcasecmp (command, "quit") == 0) + help_text = help_quit; else help_text = help_help; }