I'm running nsd from daemontools, my /service/demo/run file contains:
#!/bin/sh
exec /usr/local/aolserver33/bin/nsd-oracle -it /usr/local/aolserver33/demo.tcl -u nsadmin -g nsadmin
but the process keeps going up and coming back down immediately. Nothing shows up under readproctitle and all the error log tells me is:
[22/Jan/2003:18:16:50][23266.1024][-main-] Notice: serv: waiting for warmup
[22/Jan/2003:18:16:52][23266.1024][-main-] Notice: serv: warmed up
[22/Jan/2003:18:16:52][23266.1024][-main-] Notice: socks: idle
[22/Jan/2003:18:16:52][23266.1024][-main-] Notice: sched: idle
[22/Jan/2003:18:16:52][23266.1024][-main-] Notice: binder: listen(10.0.0.100,80) = 12
[22/Jan/2003:18:16:52][23266.1024][-main-] Notice: nssock: listening on 10.0.0.100:80
[22/Jan/2003:18:16:52][23266.13326][-nssock-] Notice: nssock: starting
[22/Jan/2003:18:16:52][23266.13326][-nssock-] Notice: nssock: accepting connections
[22/Jan/2003:18:16:52][23266.1024][-main-] Notice: nsmain: AOLserver/3.3.1+ad13 stopping
[22/Jan/2003:18:16:52][23266.1024][-main-] Notice: nssock: triggering shutdown
[22/Jan/2003:18:16:52][23266.1024][-main-] Notice: serv: stopping connection threads
[22/Jan/2003:18:16:52][23266.13326][-nssock-] Notice: exiting
[22/Jan/2003:18:16:53][23266.1024][-main-] Notice: serv: connection threads stopped
[22/Jan/2003:18:16:53][23266.1024][-main-] Notice: sched: shutdown pending
[22/Jan/2003:18:16:53][23266.2051][-sched-] Notice: sched: shutdown started
[22/Jan/2003:18:16:53][23266.2051][-sched-] Notice: sched: shutdown complete
[22/Jan/2003:18:16:53][23266.14339][-shutdown-] Notice: nslog: closing '/usr/local/aolserver33/log/demo.log'
[22/Jan/2003:18:16:53][23266.14339][-shutdown-] Notice: nssock: shutdown complete
[22/Jan/2003:18:16:53][23266.1024][-main-] Notice: nsmain: AOLserver/3.3.1+ad13 exiting
before it starts the whole process all over again.
It runs fine manually in the foreground. I've tried it under svscanboot and Rob Mayoff's rc.svscan, and my qmail processes seem to behave fine both ways, but both ways this nsd won't stay up. I have a virtually identical setup on another server that doesn't seem to have any such troubles.
Any ideas?
Tangentially, anyone using rc.svscan, how are you running it? I'm running it from the inittab, but I'm not sure if it should be set to respawn or not. Right now I have it set to "once".