Re: automatically restarting dying daemons?
--- Will Trillich <will@serensoft.com> wrote:
> for daemon-config-file-settings, i'm more comfortable specifying
> the whole path. less chance of intervention or misdirection
> based on $PATH mungings...
/etc/init.d is not in $PATH, and as such scripts are run as root anyway,
invoke-rc.d is perfect still.
> is invoke-rc.d similar to the "service" function on other
> distros? (sarge already has a "_service" for bash to facilitate
> command-line word completion... and i understand that the
> "service" function/script/alias is on its way.)
It's a little similar, yes.
> 1) there seems to be no facility for checking for a daemon
> process, only the ./run process (i.e. child processes of
> supervise)
If that is the case, then the script (and overall design) is very broken,
and I would avoid it.
> unless i misunderstand, this seems to be a "run-and-monitor home
> grown programs and scripts, do your system daemon resurrection
> elsewhere"... no?
monit has already been suggested along with 'daemontools'.
> btw -- "restartd" seems to be just the item we're looking for.
> it's a bit terse, too, but it monitors already-running items and
> lets you specify a command to resurrect (or terminate)
> accordingly. not too advanced, and needs better documentation,
> but it works just fine -- at least, for us.
-- 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: