My script solution was not as good as Dossy's, it sucked in fact. I finally bit the bullet and installed Daemontools (no inittab in NetBSD). It is not that easy to configure (you only discover service-config after you are all done...) but works wonderfully.
The NT Service thing works fine, but the only definition of 'exits deliberately' it understands is being stopped via the NT Service mechanism. Same as Daemontools. If nsd gets told to exit any other way than 'svc -d nsd'', it will get started again (if set up to re-start) I too would welcome this feature. Simple is better. Ian Harding Programmer/Analyst II Tacoma-Pierce County Health Department [EMAIL PROTECTED] Phone: (253) 798-3549 Pager: (253) 754-0002 >>> [EMAIL PROTECTED] 05/31/03 09:49AM >>> On Saturday 31 May 2003 18:31, you wrote: > > Why not just use daemontools? You avoid the race conditions of pidfiles > and get several other useful features. > Because of the added complexity of maintaining and setting up different piece of software. We use just one nsd instance in our solution and we need to be sure that it is running all the time. We'd have to do much more work, distribute more software, write more complex installation scripts, train people how to use them, etc. It is just not worth it. > Daemontools is a well-tested, working solution, maintained by someone > known to write bulletproof code. I don't say daemontools is bad. It is just getting more complex when you add more pieces. > > > Now, what I did not say (nor done yet, but I'm planning to) is: win32. > > You have no shell there. By having all built-in, you have no worry. > > Wouldn't it be better to run nsd as an NT service? Of course. But it needs to be set-up so that it restarts the program in case of failure only. If the server exits deliberately it should not kick it again. I haven't investigate this yet, as said above. Zoran -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list: http://www.aolserver.com/listserv.html List information and options: http://listserv.aol.com/ -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list: http://www.aolserver.com/listserv.html List information and options: http://listserv.aol.com/
