Forum OpenACS Q&A: Re: Daemontools question

Collapse
4: Re: Daemontools question (response to 1)
Posted by Harish Krishnan on
The daemon tools seem buggy to me on aolserver4. I need to follow a series of commands like:
svc -d /service/server
svc -k /service/server
svc -t /service/server
svc -u /service/server.
If I donnot do that the error log says that the port was not captured permission denied. This happens in the case I have to restart but when keep alive restarts the server it seems to function ok.

Is there a fix available or am is there something wrong with my set up?

Thanks in advance,

regards
Harish

Collapse
5: Re: Daemontools question (response to 4)
Posted by Tom Jackson on

Make sure you update to the latest version of AOLserver: 4.0.1. To restart an older version you might need -k (which I use anyway), but the latest version may restart with a -t. Now the non-capture issue is that AOLserver is restarting a little too fast. In your 'run' script put in a sleep, i.e.:

sleep 4

exec nsd ...

Neither of these issues has to do with Daemontools, although we need to keep looking for reasons not to use this daemonic tool.