]> git.pld-linux.org Git - projects/rc-scripts.git/blame - doc/initlog.1
- preparation for upcoming 0.4.0.1 release
[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
de1fc6ce 6[\-cefnpqrs] [\-\-cmd=ARG] [\-\-event=ARG] [\-\-facility=ARG]
cee18a41
AM
7[\-\-name=ARG] [\-\-priority=ARG] [\-\-run=ARG] [\-\-string=ARG]
8.SH DESCRIPTION
9\fBinitlog\fR logs messages and events to the system logger.
de1fc6ce
JR
10It is mainly designed for use in init scripts. initlog
11reads a configuration file
12.I /etc/initlog.conf
13by default, to determine its settings. Any line preceded with a
14.I #
15is a comment, and the following configuration directives
16are recognized:
17.TP
18.I facility <logging facility>
19Sets the default logging facility
20.TP
21.I priority <logging priority>
22Sets the default logging priority
23.TP
24.I ignore <regexp>
25Messages that match the regular expression will not be logged.
26.TP
27initlog behavior can also be configured by command-line options.
cee18a41
AM
28
29.SS OPTIONS
30.TP
31.I "\-c, \-\-cmd=[program]"
32Execute the specified program, logging anything output to
33stdout or stderr.
34.TP
35.I "\-e, \-\-event=[number]"
36Logs that the specified event happened. Usually used in conjuction
37with \fB\-\-name\fR. Currently specified events are:
38.nf
39 \fB1\fR the action completed successfully
40 \fB2\fR the action failed
41 \fB3\fR the action was cancelled at user request
42 \fB4\fR the action failed due to the failure of a dependent action
43.TP
44.I "\-f, \-\-facility=[facility]"
45
46Log at the specified syslog facility. The default
47is \fBdaemon\fR (see syslog(3)).
48.TP
49.I "\-n, \-\-name=[string]"
50Log the event under the specified string, such as
51"inetd".
52.TP
53.I "\-p, \-\-priority=[priority]"
54Log at the specified syslog priority. The default
55is \fBnotice\fR (see syslog(3)).
56.TP
de1fc6ce
JR
57.I "\-q"
58Do not print the program's output, unless it exits
59with a non-zero exit code.
60.TP
cee18a41
AM
61.I "\-r, \-\-run=[program]"
62Execute the specified program, with an open file
63descriptor so that the program can pass back
64commands to initlog.
65.TP
de1fc6ce 66.I "\-s, \-\-string=[string]"
cee18a41 67Log the specified string to the logger.
de1fc6ce
JR
68.TP
69.I "\-\-conf=[file]"
70Specifies an alternate configuration file.
71.SH FILES
72.I /etc/initlog.conf
cee18a41
AM
73.SH "SEE ALSO"
74syslog(3), logger(1)
This page took 1.445628 seconds and 4 git commands to generate.