--On Thursday, July 08, 2004 8:30 AM +0200 mixo <[EMAIL PROTECTED]> wrote:

How can I shut down hearbeat from an alert script? This does not seem to
work:

# +++++++++++++
# !/bin/sh
/usr/lib/mon/alert.d/mail.alert $*
/etc/init.d/heartbeat stop
# +++++++++++++

The email sent out, but heartbeat is not stopped.


Are you running Mon as a user that can shutdown heartbeat?

If you run the script by hand, does it shut down heartbeat?

If so, figure out what is different between your environment and the one that Mon provides. Most likely PATH is set differently, and the heartbeat script isn't setting PATH or fully specifying the path to some program.

-David

David Nolan                    <*>                    [EMAIL PROTECTED]
curses: May you be forced to grep the termcap of an unclean yacc while
     a herd of rogue emacs fsck your troff and vgrind your pathalias!


_______________________________________________ mon mailing list [EMAIL PROTECTED] http://linux.kernel.org/mailman/listinfo/mon

Reply via email to