Re: automatically restarting dying daemons?
--- Will Trillich <will@serensoft.com> wrote:
> #!/bin/bash
> /etc/init.d/some-daemon-here restart
Better to use 'invoke-rc.d' here:
invoke-rc.d <script> restart
> which is effectively a "start-some-thing &" and quick return...
>
> or does it need to be the non-returning call to the daemon
> itself, so that the daemon is a child of the "supervise"
> process? if so, ick.
I'm not quite sure what you're asking here. There's no need to background
that (rather pointless) wrapper script, since the daemon will fork if its
own accord.
-- Thomas Adam
=====
"The Linux Weekend Mechanic" -- http://linuxgazette.net
"TAG Editor" -- http://linuxgazette.net
"<shrug> We'll just save up your sins, Thomas, and punish
you for all of them at once when you get better. The
experience will probably kill you. :)"
-- Benjamin A. Okopnik (Linux Gazette Technical Editor)
___________________________________________________________ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself http://uk.messenger.yahoo.com
Reply to: