Re: run command after failover
Simon Horman <[email protected]> Tue, 30 Dec 2008 14:28:43 +1100
| Newsgroups | gmane.linux.highavailability.ultramonkey |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Dec 30, 2008 at 08:15:31AM +0800, Ron wrote: > Hi, > > I'm using heartbeat to do failover for my asterisk, i binded the > asterisk on the virtual IP, coz for some reason it does not work > properly if binded to 0.0.0.0. > > my question would be, if the master fails, virtual ip will go to slave, > i need to run asterisk on the slave so that it can be binded to the > virtual IP. how can i run the asterisk daemon when the slave takes over? Hi Ron, There are several different ways of solving this problem. One is to have bouth the VIP and asterisk managed by linux-ha (heartbeat). Linux-HA manages resources. And it should be pretty easy to turn asterisk into a resource by writing a resource-script for it - something like an init script, but a bit different. That is, if one doesn't already exist. linux-ha.org should have information on how to do this. If you can't find it, let me know. -- Simon Horman VA Linux Systems Japan K.K., Sydney, Australia Satellite Office H: www.vergenet.net/~horms/ W: www.valinux.co.jp/en _______________________________________________ Ultramonkey-users mailing list [email protected] http://lists.vergenet.net/listinfo/ultramonkey-users