summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-07-23 10:51:22 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-07-23 10:51:22 +0000
commita179ddb4ae147d21f75cf41be6c8bbb2382c9995 (patch)
tree8d69cf33a672341693d2919219aff186d42e32c0
parentd7d014aee006f27c30cd87c45f6da76da6122558 (diff)
downloadrsyslog-a179ddb4ae147d21f75cf41be6c8bbb2382c9995.tar.gz
rsyslog-a179ddb4ae147d21f75cf41be6c8bbb2382c9995.tar.xz
rsyslog-a179ddb4ae147d21f75cf41be6c8bbb2382c9995.zip
made syntax of -r chrystal-clear in doc (at least I hope so...)
-rw-r--r--rsyslogd.816
-rw-r--r--syslogd.c2
2 files changed, 10 insertions, 8 deletions
diff --git a/rsyslogd.8 b/rsyslogd.8
index 79d5028d..2ae44f61 100644
--- a/rsyslogd.8
+++ b/rsyslogd.8
@@ -199,13 +199,12 @@ You can specify an alternative unix domain socket instead of
.TP
.BI "\-r " ["port"]
Activates the syslog/udp listener service. The listener
-will listen to the specified port. Please note that a
-port must be specified in any case. This is different from
-the stock sysklogd package. If you would like to use
-the system's default port, specify 0 as the port number. That
-will result in an /etc/services lookup for the actual port
-number. If the "-r" option is not given, no syslog/udp listner
-is available. If no port is provided, 0 is used as default
+will listen to the specified port. If no port is specified,
+0 is used as port number, which in turn will lead to a
+lookup of the system default syslog port. If there is
+no system default, 514 is used. Please note that the port
+must immediately follow the -r option. Thus "-r514" is valid
+while "-r 514" is invalid (note the space).
.TP
.BI "\-s " "domainlist"
Specify a domainname that should be stripped off before
@@ -225,6 +224,9 @@ the maximum number of concurrent tcp sessions. If not specified, the
default is 200. Please note that syslog/tcp is not standardized,
but the implementation in rsyslogd follows common practice and is
compatible with e.g. Cisco PIX, syslog-ng and MonitorWare (Windows).
+Please note that the port
+must immediately follow the -t option. Thus "-t514" is valid
+while "-t 514" is invalid (note the space).
.TP
.B "\-v"
Print version and exit.
diff --git a/syslogd.c b/syslogd.c
index acb0d5e4..d85333ff 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -1608,7 +1608,7 @@ void getCurrTime(struct syslogTime *t)
static int usage(void)
{
fprintf(stderr, "usage: rsyslogd [-46Adhvw] [-l hostlist] [-m markinterval] [-n] [-p path]\n" \
- " [-s domainlist] [-r [port]] [-t port[,max-sessions]] [-f conffile] [-x]\n");
+ " [-s domainlist] [-r[port]] [-tport[,max-sessions]] [-f conffile] [-x]\n");
exit(1); /* "good" exit - done to terminate usage() */
}