[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-ha-dev
Subject: [Linux-ha-dev] heartbeat process conundrum
From: Nate Reed <nreed () awarix ! com>
Date: 2006-02-24 20:44:35
Message-ID: 200602241444.35322.nreed () awarix ! com
[Download RAW message or body]
In our cluster, Heartbeat is running mon. I have a mon alert script that
attempts to restart the cluster using /etc/init.d/heartbeat restart.
Since mon's parent is Heartbeat, the current process gets killed before it can
start a new Heartbeat process.
Here is the command I'm using in Perl:
system("(/etc/init.d/heartbeat stop &)");
I was told opening it in a subshell (the part in ()'s) would create the
process without the current process as the owner, and therefore the init
script would run to completion.
But it never gets to the "StartHA" command in the init script.
Any ideas? Is there a way to pass off control to an independent process that
won't get killed when Heartbeat shuts down?
Here's the restart portion of /etc/init.d/heartbeat:
restart)
sleeptime=`ha_parameter deadtime`
StopHA <-- Seems to die here
Echo
EchoNoNl Waiting to allow resource takeover to complete:
sleep $sleeptime
sleep 10 # allow resource takeover to complete (hopefully).
echo_success
Echo
StartHA
Echo
;;
Nate
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic