Thanks, that was helpfull.

On Monday 23 June 2008 13:40:15 Dejan Muhamedagic wrote:
> Hi,
>
> On Fri, Jun 20, 2008 at 08:44:16PM +0300, Pavel Georgiev wrote:
> > Hi.
> >
> > I`m trying get some custom scripts triggered whenever an appliance
> > acquires/releases a resource. What is the best practice for doing this?
> >
> > I saw HA executes scripts in /etc/ha.d/resource.d/ for the specified
> > resources, so that looks the way to go for, I`m expecting
> > that /etc/ha.d/resource.d/<resorce> start will be issued whenever the
> > node takes over a resource group and /etc/ha.d/resource.d/<resorce> stop
> > will be executed when it gives up on a resource.
>
> See the MailTo resource agent which sends mail on every
> start/stop of the resources in its group. You could use that as a
> template.
>
> > However, I read that s 'status'
> > param should also be supported by the script. What should the status
> > action do/return, I dont need status monitoring, just want to hook my
> > scripts on start/stop actions. Also, should start/stop return some
> > output?
>
> See again the MailTo and http://www.linux-ha.org/ResourceAgent
> for resource agent requirements.
>
> Thanks,
>
> Dejan
>
> > Thanks.
> > _______________________________________________
> > 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

_______________________________________________
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