Forum OpenACS Q&A: Re: Newbie Installation

Collapse
11: Re: Newbie Installation (response to 1)
Posted by Tom Jackson on

I should write up my latest experiments with using daemontools with OpenACS. Things missing from daemontools are the problems of starting and stopping services in some kind of order. Using the /service directory in the default situation works for things like qmail, but not for web services that use a database. I'm doing another install this week, so I can spend time to fine tune my startup scripts. Essentially, I am using the init.d scripts to start and stop things in the correct order, but the scripts use the svc commands. I use the down file to keep services from starting on their own:

# cd /service/myservice
# touch down

With Oracle OpenACS, it is critical to make changes to the Oracle start/stop scripts. Oracle should be brought up after most everything else (especially sshd), but before the webservers. To shut down, the web services need to go first, then Oracle then sshd. This prevents the problem of Oracle deciding not to stop after net access is terminated.