On 4/19/07, Keisuke MORI <[EMAIL PROTECTED]> wrote:
Alan Robertson <[EMAIL PROTECTED]> writes:
> Answering Andrew's question above would help clarify which:
> "Why do you think you need to know?"
What I want to do is similar to MailTo RA, which is a pseudo RA
that has no acutual application to be monitored, and is just for
executing some commands when start/stop along with resources
grouped together. I also want to run some commands for
periodic monitors during it's active.
In this pseudo RA, probe should always return OCF_NOT_RUNNING
incorrect.
it should return OCF_NOT_RUNNING if the last thing it did was stop.
the easiest way to do "the right thing" is have a file that you
* create during start()
* remove during stop()
* check the presence of during monitor()
check out the Dummy RA for an example
not doing this can lead to resources being restarted unnecessarily and
is generally a bad habit to get into
otherwise start will not be called, and periodic monitors
should return OCF_SUCCESS usually.
Probably I'm doing tricky thing as you said, but I believe what I
want to do is simple...
--
Keisuke MORI
NTT DATA Intellilink Corporation
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems