break configuration information out into syslog.conf.5
[unix-history] / usr / src / usr.sbin / syslogd / syslogd.8
CommitLineData
f5017cb0
KB
1.\" Copyright (c) 1983, 1986 The Regents of the University of California.
2.\" All rights reserved.
3.\"
a280d268 4.\" %sccs.include.redist.man%
f5017cb0 5.\"
925b8894 6.\" @(#)syslogd.8 6.9 (Berkeley) %G%
60af2e6d 7.\"
be78fd26 8.TH SYSLOGD 8 ""
60af2e6d
KM
9.UC 5
10.SH NAME
84cb5481 11syslogd \- log systems messages
60af2e6d 12.SH SYNOPSIS
925b8894
KB
13.nf
14.ft B
15syslogd [\-f config_file] [\-m mark_interval] [\-p log_socket]
16.fi
17.ft R
60af2e6d 18.SH DESCRIPTION
84cb5481 19.I Syslogd
925b8894
KB
20reads and logs messages to the system console, log files, other
21machines and/or users as specified by its configuration file.
22The options are as follows:
23.TP
24.I -f
25Specify the pathname of an alternate configuration file;
26the default is ``/etc/syslog.conf''.
27.TP
28.I \-m
29Select the number of minutes between ``mark'' messages;
30the default is 20 minutes.
31.TP
32.I \-p
33Specify the pathname of an alternate log socket;
34the default is ``/dev/log''.
60af2e6d 35.PP
84cb5481 36.I Syslogd
925b8894
KB
37reads its configuration file when it starts up and whenever it
38receives a hangup signal.
39For information on the format of the configuration file,
40see
41.IR syslog.conf (5).
3bd3334e 42.PP
925b8894
KB
43.I Syslogd
44reads messages from the UNIX domain socket ``/dev/log'',
45from an Internet domain socket specified in ``/etc/services'',
46and from the special device ``/dev/klog'' (to read kernel messages).
60af2e6d 47.PP
84cb5481 48.I Syslogd
925b8894
KB
49creates the file ``/var/run/syslog.pid'', and stores its process
50id there.
84cb5481 51This can be used to kill or reconfigure
925b8894 52.IR syslogd .
84cb5481 53.PP
925b8894 54The message sent to
84cb5481 55.I syslogd
925b8894
KB
56should consist of a single line.
57The message can contain a priority code, which should be a preceding
58decimal number in angle braces, for example, ``<5>''.
59This priority code should map into the priorities defined in the
60include file ``<sys/syslog.h>''.
60af2e6d 61.SH FILES
84cb5481
KM
62.ta \w'/etc/syslog.conf 'u
63.nf
925b8894
KB
64/etc/syslog.conf The configuration file.
65/var/run/syslog.pid The process id of current \fIsyslogd\fP.
66/dev/log Name of the UNIX domain datagram log socket.
67/dev/klog The kernel log device.
84cb5481 68.fi
be78fd26 69.SH SEE ALSO
925b8894 70logger(1), syslog(3), services(5), syslog.conf(5)