Commit | Line | Data |
---|---|---|
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 | 11 | syslogd \- log systems messages |
60af2e6d | 12 | .SH SYNOPSIS |
925b8894 KB |
13 | .nf |
14 | .ft B | |
15 | syslogd [\-f config_file] [\-m mark_interval] [\-p log_socket] | |
16 | .fi | |
17 | .ft R | |
60af2e6d | 18 | .SH DESCRIPTION |
84cb5481 | 19 | .I Syslogd |
925b8894 KB |
20 | reads and logs messages to the system console, log files, other |
21 | machines and/or users as specified by its configuration file. | |
22 | The options are as follows: | |
23 | .TP | |
24 | .I -f | |
25 | Specify the pathname of an alternate configuration file; | |
26 | the default is ``/etc/syslog.conf''. | |
27 | .TP | |
28 | .I \-m | |
29 | Select the number of minutes between ``mark'' messages; | |
30 | the default is 20 minutes. | |
31 | .TP | |
32 | .I \-p | |
33 | Specify the pathname of an alternate log socket; | |
34 | the default is ``/dev/log''. | |
60af2e6d | 35 | .PP |
84cb5481 | 36 | .I Syslogd |
925b8894 KB |
37 | reads its configuration file when it starts up and whenever it |
38 | receives a hangup signal. | |
39 | For information on the format of the configuration file, | |
40 | see | |
41 | .IR syslog.conf (5). | |
3bd3334e | 42 | .PP |
925b8894 KB |
43 | .I Syslogd |
44 | reads messages from the UNIX domain socket ``/dev/log'', | |
45 | from an Internet domain socket specified in ``/etc/services'', | |
46 | and from the special device ``/dev/klog'' (to read kernel messages). | |
60af2e6d | 47 | .PP |
84cb5481 | 48 | .I Syslogd |
925b8894 KB |
49 | creates the file ``/var/run/syslog.pid'', and stores its process |
50 | id there. | |
84cb5481 | 51 | This can be used to kill or reconfigure |
925b8894 | 52 | .IR syslogd . |
84cb5481 | 53 | .PP |
925b8894 | 54 | The message sent to |
84cb5481 | 55 | .I syslogd |
925b8894 KB |
56 | should consist of a single line. |
57 | The message can contain a priority code, which should be a preceding | |
58 | decimal number in angle braces, for example, ``<5>''. | |
59 | This priority code should map into the priorities defined in the | |
60 | include 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 | 70 | logger(1), syslog(3), services(5), syslog.conf(5) |