summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2d67874)
raw | patch | inline | side by side (parent: 2d67874)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 8 Nov 2008 18:01:33 +0000 (18:01 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 8 Nov 2008 18:01:33 +0000 (18:01 +0000) |
doc/rrdcached.pod | patch | blob | history | |
src/rrd_daemon.c | patch | blob | history |
diff --git a/doc/rrdcached.pod b/doc/rrdcached.pod
index d8f0c735ba74a65b6e160d5a3941b4817bb52cb6..a346d601f6cddc5d13b65df15737a868378c5320 100644 (file)
--- a/doc/rrdcached.pod
+++ b/doc/rrdcached.pod
server: 1 message for command 1
server: 12 message for command 12
+=item B<QUIT>
+
+Disconnect from rrdcached.
+
=back
=head2 Performance Values
diff --git a/src/rrd_daemon.c b/src/rrd_daemon.c
index 5231942647362921afce80bb01e62b03e75bbdbb..f9ef51f8bbfb73273d070ee7572f8a0102bd38a2 100644 (file)
--- a/src/rrd_daemon.c
+++ b/src/rrd_daemon.c
"UPDATE <filename> <values> [<values> ...]\n"
"BATCH\n"
"STATS\n"
+ "QUIT\n"
};
char *help_flush[2] =
"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;
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;
}