diff --git a/man/syslogd.8 b/man/syslogd.8 index 87ee607..9a2376f 100644 --- a/man/syslogd.8 +++ b/man/syslogd.8 @@ -19,7 +19,7 @@ .Op Fl b Ar addr[:port] .Op Fl b Ar :port .Op Fl f Ar file -.Op Fl m Ar sec +.Op Fl m Ar interval .Op Fl P Ar file .Op Fl p Ar sock .Op Fl r Ar size[:count] @@ -189,18 +189,16 @@ facility is reserved for kernel log messages. When the daemon runs alongside .Nm , this option is always set. -.It Fl m Ar seconds -.Nm -logs a mark timestamp regularly. The default interval between two +.It Fl m Ar interval +Specify interval in minutes between .Ql -- MARK -- -lines is 20 minutes. This can be changed with this option. Setting -this to zero disables log marks entirely. +log messages, default: 20 minutes. Setting this to zero disables log marks +entirely. .Pp -Depending on other log messages generated these lines may not be written -consecutively. The +Note, the .Ql -- MARK -- -message is only written if the log file hasn't been touched in -.Ar (seconds * 60) / 2 +messages are only written when a log file has been without activity in +.Ar interval / 2 minutes. .It Fl n Disable DNS query for every request. @@ -288,9 +286,8 @@ the asterisk ('*') wildcard, the equation sign ('='), the exclamation mark ('!'), and the minus sign ('-'). .Pp The '*' specifies that all messages for the specified facility are to be -directed to the destination. Note that this behavior is degenerate with -specifying a priority level of debug. Users have indicated that the -asterisk notation is more intuitive. +directed to the destination, this is the same as specifying a priority +level of debug. Some users find the asterisk notation more intuitive. .Pp The '=' restricts logging to the specified priority class. This allows, for example, routing only debug messages to a particular logging source. diff --git a/src/syslogd.c b/src/syslogd.c index 5cce220..7c5fbcf 100644 --- a/src/syslogd.c +++ b/src/syslogd.c @@ -193,8 +193,8 @@ static int addpeer(struct peer *pe0) int usage(int code) { printf("Usage:\n" - " syslogd [-46AdFknsTv?] [-a PEER] [-b :PORT] [-b ADDR[:PORT]] [-f FILE]\n" - " [-m SEC] [-P PID_FILE] [-p SOCK_PATH] [-R SIZE[:NUM]]\n" + " syslogd [-46AdFknsTv?] [-a PEER] [-b NAME] [-f FILE] [-m INTERVAL]\n" + " [-P PID_FILE] [-p SOCK_PATH] [-R SIZE[:NUM]]\n" "Options:\n" " -4 Force IPv4 only\n" " -6 Force IPv6 only\n" @@ -223,7 +223,7 @@ int usage(int code) " -F Run in foreground, required when run from a modern init/supervisor\n" " -f FILE Alternate .conf file, default: /etc/syslog.conf\n" " -k Allow logging with facility 'kernel', otherwise remapped to 'user'.\n" - " -m SEC Interval between MARK messages in log, 0 to disable, default: 20 min\n" + " -m MINS Interval between MARK messages in log, 0 to disable, default: 20 min\n" " -n Disable DNS query for every request\n" " -P FILE File to store the process ID, default: %s\n" " -p PATH Path to UNIX domain socket, multiple -p create multiple sockets. If\n"