Forum OpenACS Q&A: Response to Daemontools problems and nsd not dying

Collapse
Posted by Tom Jackson on

When using daemontools on a heavily loaded AOLserver, you need to use svc -k, or be willing to wait a few minutes or more for server restart if you use svc -t. I think you might also try moving the contents of your nsd-oracle to your run file that daemontools uses. Also, use exec in your call to start nsd. This ensures that supervise is actually controlling nsd and not a shell script. Here is what one of my run scripts looks like, for Linux:

#!/bin/sh
 
sleep 4

export ORACLE_HOME="/ora8/m01/app/oracle/product/8.1.6"
export ORACLE_BASE="/ora8/m01/app/oracle"
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/ctx/lib:/usr/lib:/lib:/usr/X11R6/lib
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/ctx/lib:$PATH
export ORACLE_SID='ora8'
export ORACLE_TERM='vt100'
export ORAENV_ASK=NO
export NLS_DATE_FORMAT="YYYY-MM-DD"
 
exec /home/aol31/bin/nsd -ic /home/aol31/servers/choicedev/choicedev.ini -u nsadmin -g web 

I have more instructions at http://zmbh.com/daemontools-aolserver/.