From eb10b94f55de8f809a80d4b08e42751ab96e9578 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Wed, 30 Oct 2019 09:19:54 +0100 Subject: [PATCH] Update usage text; -b/-c removed in favor of -R Signed-off-by: Joachim Nilsson --- src/syslogd.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/syslogd.c b/src/syslogd.c index 17a9f25..e68afa9 100644 --- a/src/syslogd.c +++ b/src/syslogd.c @@ -668,28 +668,30 @@ int usage(int code) { fprintf(stdout, "Usage:\n" - " syslogd [-46Adnrvh?] [-a SOCK] [-b SIZE] [-c COUNT] [-f FILE] [-l HOST]\n" - " [-m SEC] [-p PATH] [-s LIST]\n" + " syslogd [-46Adnrvh?] [-a SOCK] [-f FILE] [-l HOST] [-m SEC] [-P PID_FILE]\n" + " [-p SOCK_PATH] [-R SIZE[:NUM]] [-s NAME[:NAME[...]]]\n" "\n" "Options:\n" - " -? Show this help text\n" " -4 Force IPv4 only\n" " -6 Force IPv6 only\n" - " -a SOCK Additional socket (max 19) to listen to, used with chroots\n" " -A Send to all addresses in DNS A, or AAAA record\n" - " -b SIZE Log file rotation, rotate at SIZE bytes, default: disabled\n" - " -c COUNT Number of rotated log files kept\n" + " -a SOCK Additional socket (max 19) to listen to, used with chroots\n" " -d Enable debug mode\n" " -f FILE Alternate .conf file, default: /etc/syslog.conf\n" " -h Forward messages from other hosts also to remote syslog host(s)\n" " -l HOST Host name to log without its FQDN, use ':' for multiple hosts\n" - " -m INTV Interval between MARK messages in log, 0 to disable, default: 20\n" + " -m SEC Interval between MARK messages in log, 0 to disable, default: 20\n" " -n Run in foreground, required when run from a modern init/supervisor\n" " -P FILE Specify an alternative file in which to store the process ID.\n" - " The default is %s." + " The default is %s.\n" " -p PATH Alternate path to UNIX domain socket, default: %s\n" + " -R S[:R] Enable log rotation. The size argument (S) takes k/M/G qualifiers,\n" + " e.g. 2M for 2 MiB. The optional rotations argument default to 5.\n" + " Rotation can also be defined per log file in syslog.conf\n" " -r Act as remote syslog sink for other hosts\n" " -s NAME Strip domain name before logging, use ':' for multiple domains\n" + "\n" + " -? Show this help text\n" " -v Show program version and exit\n" "\n" "Bug report address: %s\n",