> >I have installed qmail by following the steps that Dave Sill provides
> >in his web-site (http://Web.InfoAve.Net/~dsill/lwq.html). Still, when
> >I try to start qmail I get the following error message continuously:
> >
> >-n Starting qmail: svscan
> >/etc/init.d/qmail: /var/qmail/run/svscan.pid: cannot create
>
> Hmm. What platform are you running on? The "-n" is an BSD vs. Sys V
> thing, and is ugly, but won't prevent the script from working. I don't
> know where you got /var/qmail/run/svscan.pid from, though, because the
> script in LWQ uses /var/run/svscan.pid. But even that's not enough to
> cause the following:
I am running on SunOS 5.6.
> >supervise: fatal: unable to acquire qmail-send/supervise/lock: access denied
> >supervise: fatal: unable to acquire log/supervise/lock: access denied
> >supervise: fatal: unable to acquire qmail-smtpd/supervise/lock: access denied
> >supervise: fatal: unable to acquire log/supervise/lock: access denied
>
> What does the following show:
>
> ls -lR /var/qmail/supervise
/var/qmail/supervise:
total 4
drwxr-xr-t 4 root other 512 Nov 14 17:25 qmail-send
drwxr-xr-t 4 root other 512 Nov 14 17:26 qmail-smtpd
/var/qmail/supervise/qmail-send:
total 6
drwxr-xr-x 3 root other 512 Nov 14 17:26 log
-rwxr-xr-x 1 root other 29 Nov 14 17:00 run
drwx------ 2 root other 512 Nov 15 12:13 supervise
/var/qmail/supervise/qmail-send/log:
total 4
-rwxr-xr-x 1 root other 88 Nov 14 17:01 run
drwx------ 2 root other 512 Nov 15 12:13 supervise
/var/qmail/supervise/qmail-send/log/supervise:
total 2
prw------- 1 root other 0 Nov 14 18:26 control
-rw------- 1 root other 0 Nov 14 18:26 lock
prw------- 1 root other 0 Nov 14 17:26 ok
-rw-r--r-- 1 root other 18 Nov 15 12:13 status
/var/qmail/supervise/qmail-send/supervise:
total 2
prw------- 1 root other 0 Nov 14 18:26 control
-rw------- 1 root other 0 Nov 14 18:26 lock
prw------- 1 root other 0 Nov 14 17:25 ok
-rw-r--r-- 1 root other 18 Nov 15 12:13 status
/var/qmail/supervise/qmail-smtpd:
total 6
drwxr-xr-x 3 root other 512 Nov 14 17:26 log
-rwxr-xr-x 1 root other 339 Nov 14 17:03 run
drwx------ 2 root other 512 Nov 15 12:13 supervise
/var/qmail/supervise/qmail-smtpd/log:
total 4
-rwxr-xr-x 1 root other 94 Nov 14 17:05 run
drwx------ 2 root other 512 Nov 15 12:13 supervise
/var/qmail/supervise/qmail-smtpd/log/supervise:
total 2
prw------- 1 root other 0 Nov 14 18:26 control
-rw------- 1 root other 0 Nov 14 18:26 lock
prw------- 1 root other 0 Nov 14 17:26 ok
-rw-r--r-- 1 root other 18 Nov 15 12:13 status
/var/qmail/supervise/qmail-smtpd/supervise:
total 2
prw------- 1 root other 0 Nov 14 18:26 control
-rw------- 1 root other 0 Nov 14 18:26 lock
prw------- 1 root other 0 Nov 14 17:26 ok
-rw-r--r-- 1 root other 18 Nov 15 12:13 status
> ls -ld / /var /var/qmail /var/qmail/supervise
drwxr-xr-x 26 root root 1024 Nov 14 16:02 /
drwxrwxrwt 23 root sys 512 Oct 31 17:01 /var
drwxr-xr-x 9 root qmail 512 Nov 14 17:56 /var/qmail
drwxr-xr-x 4 root other 512 Nov 14 16:58 /var/qmail/supervise
> >What is svscan suppose to do?
>
> It monitors the service directory and runs "supervise" on services as
> needed.
>
> >How can I get the parameters of svscan
> >(read svscan's instructions)?
>
> LWQ has a section on daemontool which contains a link to the on-line
> documentation:
>
> http://Web.InfoAve.Net/~dsill/lwq.html#daemontools
--
Joao Costa
==========
DevWeb