-BEGIN PGP SIGNED MESSAGE-
Hello,
I've added supervising of qmail-pop3d and POP3S support via stunnel
and qmail-pop3d to what is a pretty standard LWQ+vpopmail based
setup.
I added the following files to the LWQ setup:
/var/qmail/supervise/qmail-pop3d/run
#!/bin/sh
/usr/local/bin/tcpserver -u `id -u vpopmail` -g `id -g vpopmail` -v
- -R 0 110 /var/qmail/bin/qmail-popup \
`hostname` /bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir 2>&1
/var/qmail/supervise/qmail-pop3d/log/run
#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t \
/var/log/qmail/pop3d
/var/qmail/supervise/qmail-spop3d/log/run
#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t \
/var/log/qmail/spop3d
/var/qmail/supervise/qmail-spop3d/run
#!/bin/sh
/usr/local/bin/tcpserver -R -H -D -c 50 \\
- -v -u `id -u vpopmail` -g `id -g vpopmail` 0 pop3s
/usr/local/sbin/stunnel -T -p /etc/stunnel.pem -l \
/var/qmail/bin/qmail-popup -- qmail-popup `hostname`
/bin/checkpassword \
/var/qmail/bin/qmail-pop3d Maildir 2>&1
which get started by the following qmailctl extract (which is, AFAIK,
qmailctl-0.68 or something, as for some reason, I can't get to 0.70
to
work but OTOH, I don't mind it as I don't want to pollute / with a
services directory anyway:
start)
echo -n "Starting qmail: svscan"
cd /var/qmail/supervise
exec env - PATH="\$PATH" svscan &
echo \$! > /var/run/svscan.pid
echo "."
;;
stop)
echo -n "Stopping qmail: svscan"
kill `cat /var/run/svscan.pid`
echo -n " qmail"
svc -dx /var/qmail/supervise/*
echo -n " logging"
svc -dx /var/qmail/supervise/*/log
echo "."
Now starting the (s)pop3d isn't a problem at all and logging is being
done as it should, but qmailctl stop will only shutdown qmail-send
and
qmail-smtpd but not the tcpservers for (S)POP3 and if one decides
to do qmailctl start then, supervise will eat up all system resources
trying to start new tcpservers which obviously fails cause there
are still the old ones around.
What am I doing wrong?
BTW: In case anyone is interested, I got a Perl script that sets all
this stuff up automatically on FreeBSD systems (basically it should
work
on others too, but it won't install the users as this is done by
the FreeBSD qmail port already), so if you like to have it, drop me a
note (but better wait til this last problem is fixed;-).
Best regards,
Gabriel
-BEGIN PGP SIGNATURE-
Version: PGP 6.5i
iQEVAwUBO3kF1sZa2WpymlDxAQH10wf/WjF+erPNWAWoA4GGAR1blyFohv4tZVZu
yKKKX/2c9xWaRLin0gqDoKw30pjeK6dZGzkQfJ1ZawSeI3qLQxGSyT2KFbsf/Uco
Ae1y3A4hqLcqSYLZ2MXvCjZDXaNvHh7h89g2R2QIgZhK14AFnO+WXw0KTZatywLR
FEVlbm/RSzwgRzEh1IabodcqfvdcGWNvsvbsPewwNzouBATlqsspKqeheNr2cT9A
LPCPGJ16InKlB2gxmC/jAer6EAjrn2rDwdQo3QSJ+NU4fczvBYsGTZJuVieYd2Lf
r+zkkwDOymbHdRVB7XlP/ngLHIWYuNItlsp9ibXJx6twkDRbM+BT2w==
=n5JO
-END PGP SIGNATURE-