prashant schrieb:
> Hi All,
>
> I wonder if anyone can help me on that.
>
> What are the requirements/ recommendation to build a respawn program.
>
> Example:
>
> I want to use a program *X* that monitors status of *Y*.
>
> Together with
>
> *respawn hacluster /usr/lib/heartbeat/ipfail
> *
> I want to add
>
> *respawn hacluster /usr/lib/heartbeat/X
> *
>
> I found out that using exit code 100 will stop the program will stop
> respawn. *
> First Question:
>
> What are the code to make X do a fail over?
> *
> Many thanks
> Prashant
>
>
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
Hi,

don't do this in ha.cf with respawn. Write a resource agent that
heartbeat calls with monitor.

If you really want to use respawn you have to write a service that does
the checks automatically and writes the results into the CIB by
attrd_updater.


Michael
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to