[Linux-HA] problem with resource script - possibly a timeout?

2008-11-30 Thread James Little
Hi all, I'm currently working with heartbeat in the Amazon cloud and (for those that are familiar with Amazon EC2), I'm trying to use heartbeat to re-allocate an elastic IP on detection of node failure. I'm not experienced with writing my own heartbeat resource scripts, but this is what I

Re: [Linux-HA] problem with resource script - possibly a timeout?

2008-12-01 Thread Dejan Muhamedagic
Hi, On Mon, Dec 01, 2008 at 01:47:56PM +0800, James Little wrote: > Hi all, > > I'm currently working with heartbeat in the Amazon cloud and (for those > that are familiar with Amazon EC2), I'm trying to use heartbeat to > re-allocate an elastic IP on detection of node failure. I'm not experienc

Re: [Linux-HA] problem with resource script - possibly a timeout?

2008-12-02 Thread James Little
Thanks for the reply Dejan. I've added code for the status action but still no luck. So my script is now: ### usage() { echo "usage: $0 start|stop" exit 1 } associate() { CURRENT_IP=`curl

Re: [Linux-HA] problem with resource script - possibly a timeout?

2008-12-03 Thread Dejan Muhamedagic
Hi, On Tue, Dec 02, 2008 at 04:33:21PM +0800, James Little wrote: > Thanks for the reply Dejan. I've added code for the status action but still > no luck. So my script is now: > > ### > usage() { >

Re: [Linux-HA] problem with resource script - possibly a timeout?

2008-12-03 Thread James Little
Thanks Dejan, I have it working now. I realised that the binaries were in a custom path and that it had been added to user shell profiles, including root (hence the reason the script worked when ran manually). So I added the path manually in this script and then exported. -- Regards J