I have set up master - slave using HAProxy. It is working as expected. When the master is not available it is automatically pointing to slave. I need to run a linux command at the time of the switch.

I will like to know how do I run the scripts / commands while changing to the slave.

link|improve this question

Which HA solution you are using (heartbeat or keepalived)? – Khaled Nov 28 '11 at 8:29
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.