Forum OpenACS Development: Response to problems with Daemontools

Collapse
Posted by Mat Kovach on
It doesn't look like the enviroment is getting setup correctly.  You have to been watchful when using daemontools and the enviroment that is setup, since it take serveral security precautions and may not setup the enviroment just as you think.  I setup a nsd-<database type> for each server I run from daemontools (ie: nsd-oracle, nsd-postgres) which is basically:

#!/bin/sh
. /etc/profile.postgres
export PATH=$PATH:/usr/local/bin
exec /usr/local/aolserver/bin/nsd $*

/etc/profile.postgres (or profile.oracle) contains all the
proper system variables for that database

/etc/profile.postgres
#!/bin/sh
PATH=$PATH:/usr/local/pgsql/bin
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/sfw/lib:/usr/local/pgsql/lib
export PATH LD_LIBRARY_PATH

and then the run directive becomes
#!/bin/sh
exec /usr/local/aolserver/nsd-postgres -u nsadmin -g nsadmin -it /usr/local/aolserver/uptime.tcl

Hope that helps