]> git.pld-linux.org Git - projects/rc-scripts.git/blame - doc/initlog.1
- updates in static-routes description
[projects/rc-scripts.git] / doc / initlog.1
CommitLineData
cee18a41
AM
1.TH initlog 8 "Sun Jan 24 1999"
2.SH NAME
3initlog \- 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.
10It is mainly designed for use in init scripts.
11
12.SS OPTIONS
13.TP
14.I "\-c, \-\-cmd=[program]"
15Execute the specified program, logging anything output to
16stdout or stderr.
17.TP
18.I "\-e, \-\-event=[number]"
19Logs that the specified event happened. Usually used in conjuction
20with \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
29Log at the specified syslog facility. The default
30is \fBdaemon\fR (see syslog(3)).
31.TP
32.I "\-n, \-\-name=[string]"
33Log the event under the specified string, such as
34"inetd".
35.TP
36.I "\-p, \-\-priority=[priority]"
37Log at the specified syslog priority. The default
38is \fBnotice\fR (see syslog(3)).
39.TP
40.I "\-r, \-\-run=[program]"
41Execute the specified program, with an open file
42descriptor so that the program can pass back
43commands to initlog.
44.TP
45.I "\-s, \-\-string=[string]
46Log the specified string to the logger.
47.SH "SEE ALSO"
48syslog(3), logger(1)
This page took 0.043449 seconds and 4 git commands to generate.