]> git.pld-linux.org Git - projects/rc-scripts.git/blob - doc/initlog.1
- updates in static-routes description
[projects/rc-scripts.git] / doc / initlog.1
1 .TH initlog 8 "Sun Jan 24 1999"
2 .SH NAME
3 initlog \- log messages and events to the system logger
4 .SH SYNOPSIS
5 .B initlog
6 [\-cefnprs] [\-\-cmd=ARG] [\-\-event=ARG] [\-\-facility=ARG]
7 [\-\-name=ARG] [\-\-priority=ARG] [\-\-run=ARG] [\-\-string=ARG]
8 .SH DESCRIPTION
9 \fBinitlog\fR logs messages and events to the system logger.
10 It is mainly designed for use in init scripts.
11
12 .SS OPTIONS
13 .TP
14 .I "\-c, \-\-cmd=[program]"
15 Execute the specified program, logging anything output to
16 stdout or stderr.
17 .TP
18 .I "\-e, \-\-event=[number]"
19 Logs that the specified event happened. Usually used in conjuction
20 with \fB\-\-name\fR. Currently specified events are:
21 .nf
22  \fB1\fR  the action completed successfully
23  \fB2\fR  the action failed
24  \fB3\fR  the action was cancelled at user request
25  \fB4\fR  the action failed due to the failure of a dependent action
26 .TP
27 .I "\-f, \-\-facility=[facility]"
28
29 Log at the specified syslog facility. The default
30 is \fBdaemon\fR (see syslog(3)).
31 .TP
32 .I "\-n, \-\-name=[string]"
33 Log the event under the specified string, such as
34 "inetd".
35 .TP
36 .I "\-p, \-\-priority=[priority]"
37 Log at the specified syslog priority. The default
38 is \fBnotice\fR (see syslog(3)).
39 .TP
40 .I "\-r, \-\-run=[program]"
41 Execute the specified program, with an open file
42 descriptor so that the program can pass back
43 commands to initlog.
44 .TP
45 .I "\-s, \-\-string=[string]
46 Log the specified string to the logger.
47 .SH "SEE ALSO"
48 syslog(3), logger(1)
This page took 0.035024 seconds and 3 git commands to generate.