[Linux-HA] Execute a Script

Andrew Beekhof beekhof at gmail.com
Tue Sep 11 23:56:53 MDT 2007


On 9/11/07, Sean I <ifflands at gmail.com> wrote:
> I have
>
> heartbeat-gui-2.0.8-2.el4.centos
> heartbeat-pils-2.0.8-2.el4.centos
> heartbeat-stonith-2.0.8-2.el4.centos
> heartbeat-2.0.8-2.el4.centos
>
> Installed on a RHEL 4.5 machine.  I am using it to switchover and IP address
> when one node failes, it is using crm (v2).  It works great but i need to
> have it execute the script /home/dba/dbaswitch.bash right after it switches
> over the IP address.  Is there an easy way to execute the script without
> having an init script to run?

basically, no
you need to follow one of the standards (OCF or LSB) for writing your
scripts in order for them to be usable by heartbeat

otherwise you could add it directly to the IP script



More information about the Linux-HA mailing list