I am using svscan to start qmail and dnscache. I use a similar config
on our mail server and it works fine. But on my Linux workstation, when
I reboot I get screens full of errors. I do a 'killall svscan
supervise' and the errors stop. Then I start up svscan from the command
line using exactly the same syntax as in the rc.local file (I just type
"svscan /service &") and it works perfectly. Here's the actual errors
and configs:
----------
svscan: warning: unable to start supervise dnscache: file does not exist
svscan: warning: unable to start supervise dnscache/log: file does not exist
svscan: warning: unable to start supervise qmail-smtpd: file does not exist
svscan: warning: unable to start supervise qmail-smtpd/log: file does not exist
svscan: warning: unable to start supervise qmail-send/log: file does not exist
svscan: warning: unable to start supervise qmail-send: file does not exist
----------
svscan is started like this, from /etc/rc.d/rc.local:
----------
#!/bin/sh
/usr/local/bin/svscan /service &
----------
And /service looks like this:
petra:~$ ls -ld /service/
drwxr-xr-x 2 root root 4096 Jul 21 18:58 /service/
petra:~$ ls -l /service/
total 0
lrwxrwxrwx 1 root root 14 Jun 19 15:57 dnscache -> /etc/dnscache//
lrwxrwxrwx 1 root root 32 Jul 21 18:28 qmail-send ->
/var/qmail/supervise/qmail-send//
lrwxrwxrwx 1 root root 32 Jul 21 17:51 qmail-smtpd ->
/var/qmail/supervise/qmail-smtpd/
And the same contents of each of the relevant directories:
petra:~$ ls -l /etc/dnscache/
total 20
drwxr-sr-x 4 root root 4096 Jun 19 15:57 log/
drwxr-sr-x 5 root root 4096 Sep 2 14:30 root/
-rwxr-xr-x 1 root root 236 Jun 19 15:56 run*
-rw------- 1 root root 128 Jun 19 15:56 seed
drwx--S--- 3 root root 4096 Oct 5 10:57 supervise/
petra:~$ cat /etc/dnscache/run
#!/bin/sh
exec 2>&1
exec <seed
ROOT=/etc/dnscache/root; export ROOT
IP=127.0.0.1; export IP
IPSEND=0.0.0.0; export IPSEND
CACHESIZE=1000000; export CACHESIZE
exec envuidgid dnscache \
softlimit -o250 -d3000000 \
/usr/local/bin/dnscache
petra:~$ ls -l /var/qmail/supervise/qmail-send/
total 12
drwxr-xr-x 3 root root 4096 Jul 21 18:02 log/
-rwxr-xr-x 1 root root 29 Jul 21 17:35 run*
drwx------ 2 root root 4096 Oct 5 10:57 supervise/
petra:~$ cat /var/qmail/supervise/qmail-send/run
#!/bin/sh
exec /var/qmail/rc
petra:~$ cat /var/qmail/rc
#!/bin/sh
exec /usr/bin/env - PATH="/var/qmail/bin:$PATH" qmail-start ./Maildir/
petra:~$ ls -l /var/qmail/supervise/qmail-smtpd/
total 12
drwxr-xr-x 3 root root 4096 Jul 21 18:22 log/
-rwxr-xr-x 1 root root 125 Jul 21 18:56 run*
drwx------ 2 root root 4096 Oct 5 10:57 supervise/
petra:~$ cat /var/qmail/supervise/qmail-smtpd/run
#!/bin/sh
exec /usr/local/bin/tcpserver -R -q -p -x /etc/tcp.smtp.cdb -u1002 -g102 0 smtp \
/var/qmail/bin/qmail-smtpd 2>&1
Anyone see any red flags here?
Thanks,
Ben
--
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground www.bitstream.net