1initlog(8)                  System Manager's Manual                 initlog(8)
2
3
4

NAME

6       initlog - log messages and events to the system logger
7

SYNOPSIS

9       initlog    [-cefnpqrs]   [--cmd=ARG]   [--event=ARG]   [--facility=ARG]
10       [--name=ARG] [--priority=ARG] [--run=ARG] [--string=ARG]
11

DESCRIPTION

13       initlog logs messages and events to the system logger.   It  is  mainly
14       designed  for  use  in init scripts. initlog reads a configuration file
15       /etc/initlog.conf by default, to determine its settings. Any line  pre‐
16       ceded with a # is a comment, and the following configuration directives
17       are recognized:
18
19       facility <logging facility>
20              Sets the default logging facility
21
22       priority <logging priority>
23              Sets the default logging priority
24
25       ignore <regexp>
26              Messages that match the regular expression will not be logged.
27
28       initlog behavior can also be configured by command-line options.
29
30              Note that initlog is deprecated and will be removed in a  future
31              release.
32
33
34   OPTIONS
35       -c, --cmd=[program]
36              Execute the specified program, logging anything output to stdout
37              or stderr.
38
39       -e, --event=[number]
40              Logs that the specified event happened. Used in conjuction  with
41              --name. Currently specified events are:
42               1  the action completed successfully
43               2  the action failed
44               3  the action was cancelled at user request
45               4  the action failed due to the failure of a dependent action
46
47       -f, --facility=[facility]
48              Log at the specified syslog facility. The default is daemon (see
49              syslog(3)).
50
51       -n, --name=[string]
52              Log the event under the specified string, such as "inetd".
53
54       -p, --priority=[priority]
55              Log at the specified syslog priority. The default is notice (see
56              syslog(3)).
57
58       -q     Do  not  print the program's output, unless it exits with a non-
59              zero exit code.
60
61       -r, --run=[program]
62              Execute the specified program, with an open file  descriptor  so
63              that the program can pass back commands to initlog.
64
65       -s, --string=[string]
66              Log the specified string to the logger.
67
68       --conf=[file]
69              Specifies an alternate configuration file.
70

FILES

72       /etc/initlog.conf
73

SEE ALSO

75       syslog(3), logger(1)
76
77
78
79                                Sun Jan 24 1999                     initlog(8)
Impressum