From b4d4059df709e7faded933b9e619eabf9cbe1622 Mon Sep 17 00:00:00 2001 From: oetiker Date: Wed, 24 Mar 2010 17:19:57 +0000 Subject: [PATCH] rrdcached: Updated help output rrdcached: Exit with status != 0, if an invalid command line option was used. -- Sebastian Harl git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2049 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_daemon.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/rrd_daemon.c b/src/rrd_daemon.c index 154f0de..128f3c4 100644 --- a/src/rrd_daemon.c +++ b/src/rrd_daemon.c @@ -3105,13 +3105,20 @@ static int read_options (int argc, char **argv) /* {{{ */ " -g Do not fork and run in the foreground.\n" " -j Directory in which to create the journal files.\n" " -F Always flush all updates at shutdown\n" - " -s Make socket g+rw to named group\n" + " -s Group owner of all following UNIX sockets\n" + " (the socket will also have read/write permissions " + "for that group)\n" + " -m File permissions (octal) of all following UNIX " + "sockets\n" "\n" "For more information and a detailed description of all options " "please refer\n" "to the rrdcached(1) manual page.\n", VERSION); - status = -1; + if (option == 'h') + status = -1; + else + status = 1; break; } /* switch (option) */ } /* while (getopt) */ -- 2.30.2