Hi Petr

thanks for assisting me solving the problem.

> What command exactly do you use to spawn qmail? (I mean,
> you're obviously using svscan and supervise; 

yes, I made everything 100% as described in Dave Sills Life with qmail.
There it is described that way ;-)

> what does the
> DIR/run file look like? 

/var/qmail/supervise/qmail-send/run:

#!/bin/sh
exec /var/qmail/rc

/var/qmail/supervise/qmail-send/log/run:

#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t
/var/log/qmail

/var/qmail/supervise/qmail-smtpd/run:

#!/bin/sh
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
exec /usr/local/bin/softlimit -m 4000000 \
    /usr/local/bin/tcpserver -v -p -x /etc/tcp.smtp.cdb \
        -u $QMAILDUID -g $NOFILESGID 0 smtp /var/qmail/bin/qmail-smtpd
2>&1


/var/qmail/supervise/qmail-smtpd/log/run file:

#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t
/var/log/qmail/smtpd

exactly as described in LWQ

the /var/qmail/rc file looks like this:

#!/bin/sh

# 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`"

the /sbin/init.d/qmail start script is this one:

http://Web.InfoAve.net/~dsill/qmail-script-dt61.txt


> If it starts other file (like /var/qmail/rc), what
> does _that_ file look like? 

I hope I included everything you wanted in this reply. If not I did
anything as describen in LWQ.

> Please make sure that you're not putting
> anything into background ('&' at the end of the line) 

doesn't look like.
I took the files from LWQ by copy'n paste to make sure there is no
typing mistake

> - supervise
> thinks your program has died when it detaches and tries to
> respawn it.

thanks

Clemens

Reply via email to