1
Author: Nicholas Bamber <nicholas@periapt.co.uk>
2
Subject: Duende man page
3
We have made various changes to the duende executable and these need to
4
be reflected in the Debian man page.
6
Last-Update: 2011-07-18
7
--- a/doc/en/man/duende.8
8
+++ b/doc/en/man/duende.8
10
makes a given child process a daemon. The standard output
12
of the child process is logged via syslog() with a priority of
18
-child_process [ all subsequent arguments passed on to child ]
20
+child_process [ arguments passed onto child ]
25
duende uses a setuid() call to change the user ID of the logging
27
to the user with ID 66.
30
+Most of the above behaviour can be configured by command line arguments.
32
+.BI -c | --chroot " directory"
33
+The log helper process will change its directory and root to this location.
35
+.B /etc/maradns/logger "."
37
+.BI -i | --ident " string"
38
+The log helper process will use this string to identify the process when
39
+sending messages to syslog.
43
+.BI -p | --pid " filename"
44
+If this argument is present, the duende parent process will store its pid in
47
+.BI -u | --uid " integer"
48
+The log helper process will drop its user id to this. This value defaults to
51
+.BI -g | --gid " integer"
52
+The log helper process will drop its group id to this. This value defaults to
55
+.BI -r | --restart_on " integer"
56
+The log helper process will restart the child process if it exists with this
57
+status code. This defaults to 8.
61
uses the syslog() facility to log the standard output of the
62
program that it invokes. The name of the program (in other words, the
63
-"ident" given to openlog()) is the full path of the first argument
67
+"ident" given to openlog()) defaults to
69
+but can be overridden with the
72
All messages created by the child process are sent
73
-to syslog() with a priority of LOG_INFO and a "facility"
74
-of LOG_DAEMON (daemon.info in /etc/syslog.conf); since daemon.info
75
-messages are not logged by default in FreeBSD, on FreeBSD systems
76
-messages generated by the child process are logged with a priority of
77
-LOG_ALERT and a "facility" of LOG_DAEMON (daemon.alert in
79
+to syslog() with a priority of LOG_ALERT and a "facility"
80
+of LOG_DAEMON (daemon.info in /etc/syslog.conf).
81
Should duende itself encounter an error, it will send
82
messages to syslog() with a priority of LOG_ALERT.
84
-For example, suppose one invokes duende thusly:
87
- duende /usr/local/sbin/maradns
90
-If invoked thusly, duende will log all messages with the "ident"
92
-name) of "/usr/local/sbin/maradns". If this is not desired, invoke
97
- export PATH=$PATH:/usr/local/sbin
101
-This will log messages with a (more sensible) "ident" of maradns.
103
-Note: If a non-POSIX Bourne shell (such as csh, es, rc, or fish) is
105
-invoke MaraDNS, the above syntax needs to be changed.
107
Also, the directory /etc/maradns/logger, while used by duende, is not
109
to store any log messages. That is unless, for some reason, one