> Arisandy Arief:
> how can I start qmail automatically on FreeBSD boot
> using daemontools and svscan script like this one:
i have /etc/rc.local:
#!/bin/sh
PATH="/var/qmail/bin:/var/bin:$PATH"; export PATH
...
cd /service
echo -n "supervisor scanning services... "
if [ -x /var/bin/svscan -a -d /service ]; then
/var/bin/svscan /service &
if [ $? = 0 ]; then
echo "OK " $!
else
echo "NOT OK " $!
fi
fi
...
and /service/qmail-send/run:
#!/bin/rc
exec nice qmail-start ./Maildir/ >[2=1]
and /service/qmail-smtpd/run:
#!/bin/sh
#QMAILDUID=`id -u qmaild` # made those two literals to save time
#NOFILESGID=`id -g qmaild`
exec /var/bin/softlimit -m 800000 \
/var/bin/tcpserver -c3 -x/etc/tcp.smtp.cdb -u58 -g99 0 smtp \
/var/qmail/bin/qmail-smtpd 2>&1
and /service/qmail-send/log/run:
#!/bin/rc
exec setuidgid qmaill multilog t s20000 n2 '-* * msg *' ./
and /service/qmail-smtpd/log/run:
#!/bin/sh
exec setuidgid qmaill multilog t s20000 n2 ./
--
clemens [EMAIL PROTECTED]
do D4685B884894C483
gpg recv-key 0x9
echo `gpg list-key 0x9 | cat -tv` | \
gpg encrypt `gpg list-key 0x9 | 822address` | \
mail -s your-key `gpg list-key 0x9 | 822address`
wait
[encrypted] return mail.
no return mail within a week, you in trouble.
no return mail after a month, i in trouble.
please check
done