Re: run command after failover
Ron <[email protected]> Wed, 31 Dec 2008 09:04:35 +0800
| Newsgroups | gmane.linux.highavailability.ultramonkey |
|---|---|
| Message-ID | <[email protected]> |
Thanks Simon, can you refer me to any website on how to create that script? Simon Horman wrote: > 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. > _______________________________________________ Ultramonkey-users mailing list [email protected] http://lists.vergenet.net/listinfo/ultramonkey-users