Hi Norbert!

Norbert Kiesel [2005-10-05 10:34 -0700]:
> it would be nice if there where some hooks for adding actions needed for
> dependant apps for "start" and "stop" of postgresql.  Example: I always
> have to issue a "nagios restart" manually after postgresql was restarted
> because nagios hangs if the DB went down while it was connected.

This sounds indeed interesting.

> Not sure how fancy that should be.  Perhaps a simple "run-parts <dir>
> --arg=<start|stop|restart>" would do the trick already. I'd think one
> directory would be enough, as there should be no dependencies between
> the dependant apps (i.e. it would be ok if the would be run in the same
> order for start, stop, restart). 

I'd take the kernel approach and run stop with --reverse, so that the
usual habit of adding a priority prefix works. But if we do that, we
should not call the scripts with "restart" since it is not clear in
which order they should be called then. Any good ideas about this?

> I could also send a patch for that if this would help.

Sure, that's always appreciated. :-)

Martin
-- 
Martin Pitt              http://www.piware.de
Ubuntu Developer   http://www.ubuntulinux.org
Debian Developer        http://www.debian.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to