summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3aac46b)
raw | patch | inline | side by side (parent: 3aac46b)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Wed, 24 Mar 2010 17:19:57 +0000 (17:19 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Wed, 24 Mar 2010 17:19:57 +0000 (17:19 +0000) |
rrdcached: Exit with status != 0, if an invalid command line option was used. -- Sebastian Harl
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4/program@2049 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4/program@2049 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_daemon.c | patch | blob | history |
diff --git a/src/rrd_daemon.c b/src/rrd_daemon.c
index 154f0dee366bff3208a5a1ba9b6cc2d20664202c..128f3c444afe0bdde1d75331532f73ea388df0c2 100644 (file)
--- a/src/rrd_daemon.c
+++ b/src/rrd_daemon.c
" -g Do not fork and run in the foreground.\n"
" -j <dir> Directory in which to create the journal files.\n"
" -F Always flush all updates at shutdown\n"
- " -s <id|name> Make socket g+rw to named group\n"
+ " -s <id|name> Group owner of all following UNIX sockets\n"
+ " (the socket will also have read/write permissions "
+ "for that group)\n"
+ " -m <mode> 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) */