summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>2000-01-23 20:22:23 +0000
committercharnier <charnier@FreeBSD.org>2000-01-23 20:22:23 +0000
commiteb44a9737f5ba7e8549e2438ef66a9c58b7067f4 (patch)
treeff3c22c9bc1f80dddadc85351f2f16c484427d9d
parent6394ccea6b2c35a60813b368c26a135a258865d2 (diff)
downloadFreeBSD-src-eb44a9737f5ba7e8549e2438ef66a9c58b7067f4.zip
FreeBSD-src-eb44a9737f5ba7e8549e2438ef66a9c58b7067f4.tar.gz
Add section number to .Xr. Use .Pa for filenames.
fprintf -> warnx.
-rw-r--r--usr.sbin/syslogd/syslog.conf.519
-rw-r--r--usr.sbin/syslogd/syslogd.83
-rw-r--r--usr.sbin/syslogd/syslogd.c5
3 files changed, 15 insertions, 12 deletions
diff --git a/usr.sbin/syslogd/syslog.conf.5 b/usr.sbin/syslogd/syslog.conf.5
index 1563736..4be715a 100644
--- a/usr.sbin/syslogd/syslog.conf.5
+++ b/usr.sbin/syslogd/syslog.conf.5
@@ -56,7 +56,7 @@ field which specifies the types of messages and priorities to which the
line applies, and an
.Em action
field which specifies the action to be taken if a message
-.Xr syslogd
+.Xr syslogd 8
receives matches the selection criteria.
The
.Em selector
@@ -65,15 +65,15 @@ field is separated from the
field by one or more tab characters or spaces.
.Pp
Note that if you use spaces as separators, your
-.Em syslog.conf
+.Pa syslog.conf
might be incompatible with other Unices or Unix-like systems.
This functionality was added for the ease of configuration
(e.g. it is possible to cut-and-paste into
-.Em syslog.conf
+.Pa syslog.conf
),
and to avoid possible mistakes. This change however preserves
backwards compatibility with the old style of the
-.Em syslog.conf
+.Pa syslog.conf
(i.e. tab characters only).
.Pp
The
@@ -132,7 +132,7 @@ These keywords correspond to the
similar
.Dq Dv LOG_
values specified to the
-.Xr syslog
+.Xr syslog 3
library routine.
.Pp
Each block of lines is separated from the previous block by a tag. The tag
@@ -141,7 +141,8 @@ is a line beginning with
or
.Em !prog
(the former is for compatibility with the previous syslogd, if one is sharing
-syslog.conf files, for example)
+.Pa syslog.conf
+files, for example)
and each block will be associated with calls to syslog from that specific
program. A tag for ``foo'' will also match any message logged by the kernel
with the prefix ``foo: ''.
@@ -233,7 +234,7 @@ A hostname (preceded by an at
.Pq Dq @
sign).
Selected messages are forwarded to the
-.Xr syslogd
+.Xr syslogd 8
program on the named host.
.It
A comma separated list of users.
@@ -338,7 +339,9 @@ security.* /var/log/security
configuration file
.El
.Sh BUGS
-The effects of multiple selectors are sometimes not intuitive.
+The effects of multiple
+.Em selectors
+are sometimes not intuitive.
For example
.Dq mail.crit,*.err
will select
diff --git a/usr.sbin/syslogd/syslogd.8 b/usr.sbin/syslogd/syslogd.8
index 9d7c42e..fb8968d 100644
--- a/usr.sbin/syslogd/syslogd.8
+++ b/usr.sbin/syslogd/syslogd.8
@@ -51,6 +51,7 @@ The
.Nm
daemon reads and logs messages to the system console, log files, other
machines and/or users as specified by its configuration file.
+.Pp
The options are as follows:
.Bl -tag -width indent
.It Fl a Ar allowed_peer
@@ -121,7 +122,7 @@ the default is
.Pa /var/run/log .
.It Fl l
Specify a location where
-.Nm syslogd
+.Nm
should place an additional log socket.
Up to 19 additional logging sockets can be specified.
The primary use for this is to place additional log sockets in
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c
index 8cc1978..008228b 100644
--- a/usr.sbin/syslogd/syslogd.c
+++ b/usr.sbin/syslogd/syslogd.c
@@ -330,8 +330,7 @@ main(argc, argv)
if (nfunix < MAXFUNIX)
funixn[nfunix++] = optarg;
else
- fprintf(stderr,
- "syslogd: out of descriptors, ignoring %s\n",
+ warnx("out of descriptors, ignoring %s",
optarg);
break;
case 'u': /* only log specified priority */
@@ -1160,7 +1159,7 @@ domark(signo)
* will also log the event.
*/
kill(q->dq_pid, SIGTERM);
- /* FALLTROUGH */
+ /* FALLTHROUGH */
default:
q->dq_timeout--;
OpenPOWER on IntegriCloud