My apologies. I should have included the original code in my email. The
method you suggested is the method employed in the script on Adam's page.
Unfortunately, svscan is not behaving the way the documentation says that it
should.
You can test this by executing 'svscan /service' from the command line.
When I execute this command, svscan attempts to start ./run in every
subdirectory of my working directory.
When executing init./svscan start, using the original method ( w/o the cd
/service) svscan starts and is listed in the output of ps -aux but none of
the associated scripts ( supervise qmail-send) start up.
We can't always believe what we read :)
David
>
> According to http://cr.yp.to/daemontools/svscan.html, svscan can
> (should?) be started with a single argument - the /service directory. So
> instead of
>
> cd /service
> env - PATH="/usr/local/bin:$PATH" svscan &
>
> you could use
>
> env - PATH="/usr/local/bin:$PATH" svscan /service &
>