1 .\" <!-- $Id: courierlogger.sgml,v 1.9 2007/04/22 15:05:16 mrsam Exp $ -->
2 .\" <!-- Copyright 2004-2007 Double Precision, Inc. See COPYING for -->
3 .\" <!-- distribution information. -->
4 .\" Title: courierlogger
6 .\" Generator: DocBook XSL Stylesheets v1.72.0 <http://docbook.sf.net/>
8 .\" Manual: Double Precision, Inc.
9 .\" Source: Double Precision, Inc.
11 .TH "COURIERLOGGER" "1" "04/22/2007" "Double Precision, Inc." "Double Precision, Inc."
12 .\" disable hyphenation
14 .\" disable justification (adjust text to left margin only)
17 courierlogger \- Courier syslog wrapper
20 \fBcourierlogger\fR [\-name=\fItitle\fR] [\-facility=\fIsubsystem\fR] [\-pid=\fIfilename\fR] [\-user=\fIuser\fR] [\-group=\fIgroup\fR] [\-droproot] [[[\-respawn]\ [\-start]\ \fIprogram\fR\ [argument...]] | [\-stop] | [\-restart]]
25 is a wrapper that captures another process's error messages, and forwards them to the system logging facility,
28 There are two ways to use courierlogger:
30 \h'-04' 1.\h'+02'Use the shell to pipe another command's standard error, and/or its standard output, to
31 \fBcourierlogger\fR's standard input.
34 \h'-04' 2.\h'+02'Alternatively,
36 itself can start another process, and arrange to have its standard error captured.
41 In either case, each read line of text is sent as a syslog message.
48 for sending messages to syslog.
50 should be the application's name.
53 \-facility=\fIsubsystem\fR
57 for classifying messages. Your syslog facility uses
59 to determine which log messages are recorded in which log files. The currently defined subsystems are:
61 \h'-04'\(bu\h'+03'auth
64 \h'-04'\(bu\h'+03'authpriv
67 \h'-04'\(bu\h'+03'console
70 \h'-04'\(bu\h'+03'cron
73 \h'-04'\(bu\h'+03'daemon
79 \h'-04'\(bu\h'+03'kern
85 \h'-04'\(bu\h'+03'mail
88 \h'-04'\(bu\h'+03'news
91 \h'-04'\(bu\h'+03'security
94 \h'-04'\(bu\h'+03'user
97 \h'-04'\(bu\h'+03'uucp
100 \h'-04'\(bu\h'+03'local0
103 \h'-04'\(bu\h'+03'local1
106 \h'-04'\(bu\h'+03'local2
109 \h'-04'\(bu\h'+03'local3
112 \h'-04'\(bu\h'+03'local4
115 \h'-04'\(bu\h'+03'local5
118 \h'-04'\(bu\h'+03'local6
121 \h'-04'\(bu\h'+03'local7
126 .nr an-no-space-flag 1
130 Not all of the above facility names are implemented on every system. Check your system's syslog documentation for information on which facility names are allowed, and which log files record the corresponding messages for each facility.
136 \fBcourierlogger\fR's process ID in
139 option is required when
145 is given without any of these,
156 will quietly terminate if another
158 process is already running. This is used to make sure that only one instance of
160 is running at the same time. Specify a different filename with
162 to start a second copy of
170 if it terminates. Normally
172 itself will terminate when
174 finishes running. Use
176 to restart it instead.
183 signal to the courierlogger process (as determined by examining the contents of the file specified by
184 \fBpid\fR), which will in turn send a
187 \fIprogram\fR. Does nothing if courierlogger is not running.
190 .nr an-no-space-flag 1
196 must be originally started with the
198 option if sending it a
200 causes it to terminate.
202 The same thing may be accomplished by sending
213 signal to courierlogger, which in turn forwards it on to
216 does not terminate in 8 seconds, kill it with
220 \-user=\fIuser\fR, \-group=\fIgroup\fR
222 If running as root, change credentials to the given user and/or group, which may be given as names or numeric ids.
224 When running a child program, it is started
226 privileges are dropped (unless the
228 option is also given). This gives a means of starting a child as root so it can bind to a privileged port, but still have courierlogger run as a non\-root user. For the
232 options to work, you should configure the child program to drop its privileges to the same userid too.
237 Drop root privileges before starting the child process. The
241 options specify the non\-privileges userid and groupid. Without the
243 option the child process remains a root process, and only the parent
245 process drops root privileges.
248 \fIprogram\fR [ argument ] ...
250 If a program is given
252 will be started as a child process of
253 \fBcourierlogger\fR, capturing its standard error. Otherwise,
255 reads message from standard input, and automatically terminates when standard input is closed.
260 \fI\fBcouriertcpd\fR(1)\fR\&[1], your syslog man page.