Roger Oberholtzer wrote:
On Wed, 2010-06-23 at 13:12 +0200, Per Jessen wrote:
Maybe the daemon has a --donotfork option?
I guess the -w option to startproc will solve that.
I don't have that - maybe I need a newer startproc.
This is in the man page on 11.2.
-w Wait the first started process to terminate before returning. If the parent process of the daemon does not finish also startproc(8) does not finish.
Hmm, I'll have to try that out - I can't quite visualize what it's supposed to do. In case it is of any help, here's a rough outline of what I do (for asterisk and spamd for instance): restart-script = essentially "while true; do daemon --donotfork; done". Of course I have safe guards against loops, and I usually also get an email notification (the restart should not happen, so I want it to pester me). In my init-script, I simply do startproc -s restart-script This obviously causes a problem if you try to do a restart, but such is life :-) -- Per Jessen, Zürich (16.2°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org