summaryrefslogtreecommitdiffstats
path: root/usr.sbin/syslogd
diff options
context:
space:
mode:
authorjmg <jmg@FreeBSD.org>1997-04-29 09:09:40 +0000
committerjmg <jmg@FreeBSD.org>1997-04-29 09:09:40 +0000
commitab822731352b40dac8fe94bb90ec84f0549429ef (patch)
tree73b254448214938330ffb9e6c6160bbf3875b4b5 /usr.sbin/syslogd
parent57051903646d04b2d3a23881594295fbe03ae7a6 (diff)
downloadFreeBSD-src-ab822731352b40dac8fe94bb90ec84f0549429ef.zip
FreeBSD-src-ab822731352b40dac8fe94bb90ec84f0549429ef.tar.gz
add an Id line, minor mdoc fix ups
add ftp to list of facilities in syslog.conf Closes PR#3389 Submitted-by: Pius Fischer
Diffstat (limited to 'usr.sbin/syslogd')
-rw-r--r--usr.sbin/syslogd/syslog.conf.559
-rw-r--r--usr.sbin/syslogd/syslogd.839
2 files changed, 63 insertions, 35 deletions
diff --git a/usr.sbin/syslogd/syslog.conf.5 b/usr.sbin/syslogd/syslog.conf.5
index 1bb268a..50031c1 100644
--- a/usr.sbin/syslogd/syslog.conf.5
+++ b/usr.sbin/syslogd/syslog.conf.5
@@ -30,6 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)syslog.conf.5 8.1 (Berkeley) 6/9/93
+.\" $Id$
.\"
.Dd June 9, 1993
.Dt SYSLOG.CONF 5
@@ -41,7 +42,7 @@
configuration file
.Sh DESCRIPTION
The
-.Nm syslog.conf
+.Nm
file is the configuration file for the
.Xr syslogd 8
program.
@@ -68,7 +69,9 @@ The
function
are encoded as a
.Em facility ,
-a period (``.''), and a
+a period
+.Pq Dq \&. ,
+and a
.Em level ,
with no intervening white-space.
Both the
@@ -80,7 +83,7 @@ are case insensitive.
The
.Em facility
describes the part of the system generating the message, and is one of
-the following keywords: auth, authpriv, cron, daemon, kern, lpr, mail,
+the following keywords: auth, authpriv, cron, daemon, ftp, kern, lpr, mail,
mark, news, syslog, user, uucp and local0 through local7.
These keywords (with the exception of mark) correspond to the
similar
@@ -98,7 +101,7 @@ following ordered list (higher to lower): emerg, alert, crit, err,
warning, notice, info and debug.
These keywords correspond to the
similar
-.Pq Dv LOG_
+.Dq Dv LOG_
values specified to the
.Xr syslog
library routine.
@@ -126,9 +129,7 @@ rather than
since the latter can easily vary in a networked environment. In some cases,
though, an appropriate
.Em facility
-simply doesn't exist (for example,
-.Em ftpd
-logs under LOG_DAEMON along with a myriad other programs).
+simply doesn't exist.
.Pp
If a received message matches the specified
.Em facility
@@ -145,7 +146,9 @@ Multiple
.Em selectors
may be specified for a single
.Em action
-by separating them with semicolon (``;'') characters.
+by separating them with semicolon
+.Pq Dq \&;
+characters.
It is important to note, however, that each
.Em selector
can modify the ones preceding it.
@@ -154,9 +157,13 @@ Multiple
.Em facilities
may be specified for a single
.Em level
-by separating them with comma (``,'') characters.
+by separating them with comma
+.Pq Dq \&,
+characters.
.Pp
-An asterisk (``*'') can be used to specify all
+An asterisk
+.Pq Dq *
+can be used to specify all
.Em facilities
all
.Em levels
@@ -165,7 +172,10 @@ or all
.Pp
The special
.Em facility
-``mark'' receives a message at priority ``info'' every 20 minutes
+.Dq mark
+receives a message at priority
+.Dq info
+every 20 minutes
(see
.Xr syslogd 8 ) .
This is not enabled by a
@@ -174,7 +184,8 @@ field containing an asterisk.
.Pp
The special
.Em level
-``none'' disables a particular
+.Dq none
+disables a particular
.Em facility .
.Pp
The
@@ -188,7 +199,9 @@ There are five forms:
A pathname (beginning with a leading slash).
Selected messages are appended to the file.
.It
-A hostname (preceded by an at (``@'') sign).
+A hostname (preceded by an at
+.Pq Dq @
+sign).
Selected messages are forwarded to the
.Xr syslogd
program on the named host.
@@ -200,7 +213,9 @@ if they are logged in.
An asterisk.
Selected messages are written to all logged-in users.
.It
-A vertical bar (``|''), followed by a command to pipe the selected
+A vertical bar
+.Pq Dq \&| ,
+followed by a command to pipe the selected
messages to. The command is passed to a
.Pa /bin/sh
for evaluation, so usual shell metacharacters or input/output
@@ -216,7 +231,7 @@ redirected to
.Pa /dev/null .
Upon receipt of a
.Dv SIGHUP ,
-.Nm syslogd
+.Nm
will close the pipe to the process. If the process didn't exit
voluntarily, it will be sent a
.Dv SIGTERM
@@ -234,7 +249,8 @@ complete. Warning: the process is started under the UID invoking
normally the superuser.
.El
.Pp
-Blank lines and lines whose first non-blank character is a hash (``#'')
+Blank lines and lines whose first non-blank character is a hash
+.Pq Dq #
character are ignored.
.Sh EXAMPLES
.Pp
@@ -284,8 +300,15 @@ configuration file.
.El
.Sh BUGS
The effects of multiple selectors are sometimes not intuitive.
-For example ``mail.crit,*.err'' will select ``mail'' facility messages at
-the level of ``err'' or higher, not at the level of ``crit'' or higher.
+For example
+.Dq mail.crit,*.err
+will select
+.Dq mail
+facility messages at the level of
+.Dq err
+or higher, not at the level of
+.Dq crit
+or higher.
.Sh SEE ALSO
.Xr syslog 3 ,
.Xr syslogd 8
diff --git a/usr.sbin/syslogd/syslogd.8 b/usr.sbin/syslogd/syslogd.8
index a426c69..3efab7f 100644
--- a/usr.sbin/syslogd/syslogd.8
+++ b/usr.sbin/syslogd/syslogd.8
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)syslogd.8 8.1 (Berkeley) 6/6/93
-.\" $Id: syslogd.8,v 1.8 1997/02/22 16:14:00 peter Exp $
+.\" $Id: syslogd.8,v 1.9 1997/04/26 00:00:32 pst Exp $
.\"
.Dd October 12, 1995
.Dt SYSLOGD 8
@@ -39,22 +39,23 @@
.Nm syslogd
.Nd log systems messages
.Sh SYNOPSIS
-.Nm syslogd
+.Nm
.Op Fl \&dI
.Op Fl f Ar config_file
.Op Fl m Ar mark_interval
.Op Fl p Ar log_socket
.Sh DESCRIPTION
-.Nm Syslogd
-reads and logs messages to the system console, log files, other
+The
+.Nm
+daemon reads and logs messages to the system console, log files, other
machines and/or users as specified by its configuration file.
The options are as follows:
.Bl -tag -width Ds
.It Fl d
Put
-.Nm syslogd
+.Nm
into debugging mode. This is probably only of use to developers working on
-.Nm syslogd .
+.Nm Ns .
.It Fl f
Specify the pathname of an alternate configuration file;
the default is
@@ -62,23 +63,26 @@ the default is
.It Fl s
Operate in secure mode. Do not listen for log message from remote machines.
.It Fl m
-Select the number of minutes between ``mark'' messages;
-the default is 20 minutes.
+Select the number of minutes between
+.Dq mark
+messages; the default is 20 minutes.
.It Fl p
Specify the pathname of an alternate log socket;
the default is
.Pa /var/run/log .
.El
.Pp
-.Nm Syslogd
-reads its configuration file when it starts up and whenever it
+The
+.Nm
+daemon reads its configuration file when it starts up and whenever it
receives a hangup signal.
For information on the format of the configuration file,
see
.Xr syslog.conf 5 .
.Pp
-.Nm Syslogd
-reads messages from the
+The
+.Nm
+daemon reads messages from the
.Tn UNIX
domain socket
.Pa /var/run/log ,
@@ -88,16 +92,17 @@ and from the special device
.Pa /dev/klog
(to read kernel messages).
.Pp
-.Nm Syslogd
-creates the file
+The
+.Nm
+daemon creates the file
.Pa /var/run/syslog.pid ,
and stores its process
id there.
This can be used to kill or reconfigure
-.Nm syslogd .
+.Nm Ns .
.Pp
The message sent to
-.Nm syslogd
+.Nm
should consist of a single line.
The message can contain a priority code, which should be a preceding
decimal number in angle braces, for example,
@@ -111,7 +116,7 @@ include file
The configuration file.
.It Pa /var/run/syslog.pid
The process id of current
-.Nm syslogd .
+.Nm Ns .
.It Pa /var/run/log
Name of the
.Tn UNIX
OpenPOWER on IntegriCloud