Commit | Line | Data |
---|---|---|
a42b3e1b KB |
1 | .\" Copyright (c) 1983, 1986, 1991, 1993 |
2 | .\" The Regents of the University of California. All rights reserved. | |
f5017cb0 | 3 | .\" |
a280d268 | 4 | .\" %sccs.include.redist.man% |
f5017cb0 | 5 | .\" |
a42b3e1b | 6 | .\" @(#)syslogd.8 8.1 (Berkeley) %G% |
60af2e6d | 7 | .\" |
b42074ab CL |
8 | .Dd |
9 | .Dt SYSLOGD 8 | |
10 | .Os BSD 4.2 | |
11 | .Sh NAME | |
12 | .Nm syslogd | |
13 | .Nd log systems messages | |
14 | .Sh SYNOPSIS | |
15 | .Nm syslogd | |
16 | .Op Fl f Ar config_file | |
17 | .Op Fl m Ar mark_interval | |
18 | .Op Fl p Ar log_socket | |
19 | .Sh DESCRIPTION | |
20 | .Nm Syslogd | |
925b8894 KB |
21 | reads and logs messages to the system console, log files, other |
22 | machines and/or users as specified by its configuration file. | |
23 | The options are as follows: | |
b42074ab CL |
24 | .Bl -tag -width Ds |
25 | .It Fl f | |
925b8894 | 26 | Specify the pathname of an alternate configuration file; |
b42074ab CL |
27 | the default is |
28 | .Pa /etc/syslog.conf . | |
29 | .It Fl m | |
925b8894 KB |
30 | Select the number of minutes between ``mark'' messages; |
31 | the default is 20 minutes. | |
b42074ab | 32 | .It Fl p |
925b8894 | 33 | Specify the pathname of an alternate log socket; |
b42074ab CL |
34 | the default is |
35 | .Pa /dev/log . | |
36 | .El | |
37 | .Pp | |
38 | .Nm Syslogd | |
925b8894 KB |
39 | reads its configuration file when it starts up and whenever it |
40 | receives a hangup signal. | |
41 | For information on the format of the configuration file, | |
42 | see | |
b42074ab CL |
43 | .Xr syslog.conf 5 . |
44 | .Pp | |
45 | .Nm Syslogd | |
46 | reads messages from the | |
47 | .Tn UNIX | |
48 | domain socket | |
49 | .Pa /dev/log , | |
50 | from an Internet domain socket specified in | |
51 | .Pa /etc/services , | |
52 | and from the special device | |
53 | .Pa /dev/klog | |
54 | (to read kernel messages). | |
55 | .Pp | |
56 | .Nm Syslogd | |
57 | creates the file | |
58 | .Pa /var/run/syslog.pid , | |
59 | and stores its process | |
925b8894 | 60 | id there. |
84cb5481 | 61 | This can be used to kill or reconfigure |
b42074ab CL |
62 | .Nm syslogd . |
63 | .Pp | |
925b8894 | 64 | The message sent to |
b42074ab | 65 | .Nm syslogd |
925b8894 KB |
66 | should consist of a single line. |
67 | The message can contain a priority code, which should be a preceding | |
b42074ab CL |
68 | decimal number in angle braces, for example, |
69 | .Sq Aq 5. | |
925b8894 | 70 | This priority code should map into the priorities defined in the |
b42074ab CL |
71 | include file |
72 | .Aq Pa sys/syslog.h . | |
73 | .Sh FILES | |
74 | .Bl -tag -width /var/run/syslog.pid -compact | |
75 | .It Pa /etc/syslog.conf | |
76 | The configuration file. | |
77 | .It Pa /var/run/syslog.pid | |
78 | The process id of current | |
79 | .Nm syslogd . | |
80 | .It Pa /dev/log | |
81 | Name of the | |
82 | .Tn UNIX | |
83 | domain datagram log socket. | |
84 | .It Pa /dev/klog | |
85 | The kernel log device. | |
86 | .El | |
87 | .Sh SEE ALSO | |
88 | .Xr logger 1 , | |
89 | .Xr syslog 3 , | |
90 | .Xr services 5 , | |
91 | .Xr syslog.conf 5 | |
92 | .Sh HISTORY | |
93 | The | |
94 | .Nm | |
95 | command appeared in | |
96 | .Bx 4.3 . |