1 .TH initlog 8 "Sun Jan 24 1999"
3 initlog \- log messages and events to the system logger
6 [\-cefnprs] [\-\-cmd=ARG] [\-\-event=ARG] [\-\-facility=ARG]
7 [\-\-name=ARG] [\-\-priority=ARG] [\-\-run=ARG] [\-\-string=ARG]
9 \fBinitlog\fR logs messages and events to the system logger.
10 It is mainly designed for use in init scripts.
14 .I "\-c, \-\-cmd=[program]"
15 Execute the specified program, logging anything output to
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:
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
27 .I "\-f, \-\-facility=[facility]"
29 Log at the specified syslog facility. The default
30 is \fBdaemon\fR (see syslog(3)).
32 .I "\-n, \-\-name=[string]"
33 Log the event under the specified string, such as
36 .I "\-p, \-\-priority=[priority]"
37 Log at the specified syslog priority. The default
38 is \fBnotice\fR (see syslog(3)).
40 .I "\-r, \-\-run=[program]"
41 Execute the specified program, with an open file
42 descriptor so that the program can pass back
45 .I "\-s, \-\-string=[string]
46 Log the specified string to the logger.