Hi:
I have moved over to deamontools 0.61 but cannot logging to work
as DJB intended.
deamontools suggests that pipe is a big no no, so here is my qmail rc
script that works fine.
#!/bin/ksh
# Using stdout for logging
# Using control/defaultdelivery from qmail-local to deliver messages by
default
exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start "`cat /var/qmail/control/defaultdelivery`" \
|setuidgid qmaill /local/bin/multilog t s99000000 n20 /var/log/qmail
This works fine.
When I switch to running under supervise, I changed it to remove the
logging line from the above so now its only
qmail-start "`cat /var/qmail/control/defaultdelivery`" when it is
invoked by the run script.
and I have made a directory/file called ./log/run that has
exec setuidgid qmaill /local/bin/multilog t s99000000 n20 /var/log/qmail
but when I run it under supervise, qmail logs go to standard out and ps
does not show any multilog process.
Where am I going wrong.
Thanks
Burzin