Thank for your help, Dominik :) Choon Kiat
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dominik Klein Sent: Friday, May 16, 2008 2:34 PM To: General Linux-HA mailing list Subject: Re: [Linux-HA] Failover Instructions Choon Kiat wrote: > Hi, > > No One? Or any clue? :( > I want to run a script at the secondary server once the primary server fail. > > > Regards, > Choon Kiat You could write a resource agent which does whatever you want and constraint it to your resource. You could also edit the resource agent your resource uses now and make your script load at then end of the start-function. But make sure it does not change any return code! On how to write a resource agent, read: http://www.linux-ha.org/OCFResourceAgent Regards Dominik _______________________________________________ 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
