[Linux-ha-dev] heartbeat-1.2.2 failure to stop
alanr at unix.sh
Thu Jul 1 09:18:16 MDT 2004
Tuomo Soini wrote:
> Ok. Info I have now.
> This problem has something to do with using /etc/init.d/* as resource
> scripts. On RedHat based systems init.d scripts give error if service is
> already stopped. When I applied attached patch to my initscripts I
> haven't had failure to stop any more.
> So codepath in heartbeat which is run if servicename stop gives result
> code other than 0 is somehow buggy.
> This patch to redhat initscripts helped that situation.
Of course, that patch causes its own problems if your service really didn't
stop. I assume you got nasty messages in the logs about trying to stop the
service, and having it fail?
What the heartbeat code is *supposed* to do is:
try "stop" up to 10 times - or until it succeeds
Then, if "status" says the service is running, then reboot the
machine amid big complaints...
otherwise stop "normally"...
Does that logic (if correctly implemented) sound like it ought to be
Alan Robertson <alanr at unix.sh>
"Openness is the foundation and preservative of friendship... Let me claim
from you at all times your undisguised opinions." - William Wilberforce
More information about the Linux-HA-Dev