On Wed, 19 Feb 2003, Gregor Goestl wrote:

> Is it possible to have two different startupalerts:
>
> startupalert exit=0 mail.alert ...
> startupalert exit=1 mail.alert ...
>
> I want to do two different things on startup, if an error occurs or if all
> is ok.
> In the manpage nothing like that is descriped ...

yes, the entry in the man page for startupalert is a bit terse.

startupalerts are called only when the server starts up, or after it
was sent a "reset" command from a client. unlike other alerts, these
startupalerts are not only executed after a monitor exits--they run
without a corresponding monitor. consequently the "exit=0" and "exit=1"
part is ignored for startupalerts.

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

Reply via email to