I don't use a supervisor unless it's hidden in the default configuration,
but this is my startup script:
#!/sbin/sh
#
# Start qmail
#
case "$1" in
'start')
if [ -f /var/qmail/rc ]; then
csh -cf '/var/qmail/rc &'
fi
if [ -f /var/qmail/bin/qmail-smtpd -a -f
/usr/local/bin/tcpserver -a -f
/etc/tcp.smtp.cdb ]; then
/usr/local/bin/tcpserver -R -c 100 -x/etc/tcp.smtp.cdb -u
32004
-g 1000 0 smtp /var/qmail/bin/qmail-smtpd &
fi
;;
'stop')
/usr/bin/pkill -f -u 0 qmail-smtpd
/usr/bin/pkill -f -u 0 qmail-send
/usr/bin/pkill -f -u 0 qmail-lspawn
/usr/bin/pkill -f -u 0 qmail-rspawn
/usr/bin/pkill -f -u 0 qmail-clean
/usr/bin/pkill -f -u 0 splogger
;;
*)
echo "Usage: $0 { start | stop }"
exit 1
;;
esac
exit 0
> -----Original Message-----
> From: Dave Kelly [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 13, 2000 1:12 PM
> To: [EMAIL PROTECTED]
> Subject: RE: qmail hanging - best way to restart
>
>
> What does your 'qmail start' script look like? If you converted
> to the most
> recent supervise from an older version, and didn't convert things into the
> 'run' file correctly, you could see this behaviour.
>
> -D
>
>
>
> >-----Original Message-----
> >From: Mike Denka [mailto:[EMAIL PROTECTED]]
> >Sent: Tuesday, June 13, 2000 3:04 PM
> >To: [EMAIL PROTECTED]
> >Subject: qmail hanging - best way to restart
> >
> >
> >We are having some problems with qmail hanging and no longer
> responding to
> >POP requests or smtp requests. Restarting all qmail processes and
> >qmail-popup resolves the problem. I notice that when I stop qmail, the
> >/etc/init.d/qmail stop script does not stop all processes, only
> those whose
> >effective uids are 0 (root). Therefore several processes remain
> >running and
> >I must wait for them to terminate to restart. This can be quite a
> >long time
> >(sometimes the processes seem to be hung and never terminate naturally).
> >
> >Two questions:
> >
> >1) anyone else notice this problem with both qmail pop and qmail smtp
> >hanging (on Solaris 7 running on an E250 with 512 MB RAM - using
> tcpserver
> >to fork the processes - note: this does NOT seem to be related to the
> >previous thread on Solaris 7 problems - that thread mentioned
> thousands of
> >qmail processes stalling, I never have more than 40 or 50).
> >
> >2) Is there any reason that qmail processes whose effective uid is not 0
> >shouldn't be killed when stopping and restarting?
> >
> >Thanks,
> >
> >Mike
> >
> >
>
>