Fred Lindberg wrote:
>
> I use this in /etc/rc.d/init.d/qmail:
>
> supervise /var/run/qmail qmail-start ./Maildir/ /usr/bin/accustamp | \
> /usr/bin/setuser qmaill \
> /usr/bin/cyclog -n4 -s2500000 /var/log/qmail /var/qmail/bin/analog
SNIP
Thanks for the ideas! These are excellant. For other people running the
same setup as me (Slack 3.6) here are my files:
/etc/rc.d/rc.qmail is run by rc.M in place of starting up sendmail:
PATH=$PATH:/usr/local/bin:/var/qmail/bin
USERID=1002
GROUPID=101
case "$1" in
start)
echo -n "Starting mail-transfer agent: qmail"
#ulimit -v 2048
csh -cf '/var/qmail/rc &'
supervise /var/lock/qmail-smtpd tcpserver -v -c100
-x/etc/tcp.smtp.cdb -u$USERID -g$GROUPID 0 25 \
rblsmtpd qmail-smtpd 2>&1 | setuser qmaill accustamp | \
setuser qmaill cyclog -s5000 -n10 /var/log/qmail/qmail-smtpd \
/var/qmail/bin/analog &
echo "."
;;
stop)
echo -n "Stopping mail-transfer agent: qmail"
killall -TERM qmail-send
svc -dx /var/lock/qmail-smtpd
echo "."
;;
restart)
$0 stop
$0 start
;;
reload|force-reload)
echo "Reloading 'locals' and 'virtualdomains' control files."
start-stop-daemon --stop --quiet --oknodo --signal HUP --exec
/usr/sbin/qmail-send
;;
*)
echo 'Usage: /etc/rc.d/rc.qmail {start|stop|restart|reload}'
exit 1
esac
exit 0
I guess technically speaking qmail-smtpd should be started by rc.inet2
while only /var/qmail/rc should be started by rc.M.
And my /var/qmail/rc:
exec env - PATH="/var/qmail/bin:$PATH" \
supervise /var/lock/qmail qmail-start ./Maildir/
/usr/local/bin/accustamp | \
/usr/local/bin/setuser qmaill \
/usr/local/bin/cyclog -s 5000 -n 10 /var/log/qmail /var/qmail/bin/analog
This is on my personal workstation so mail volumes are low ergo small
log files. This stuff just keep sgetting better and better!
--
___________________________________________________________________
Mark E Drummond Royal Military College of Canada
[EMAIL PROTECTED] Computing Services
Linux Uber Alles perl || die
...there are two types of command interfaces in the world of
computing: good interfaces and user interfaces.
- Dan Bernstein, Author of qmail
PGP Fingerprint = 503D A72D AF41 2AD1 D433 C514 98D9 9A39 B25A 2405