On Thu, Jul 31, 2008 at 04:44:31PM -0500, Angel Rengifo Cancino wrote:
>> I can't understand why httpd and squid are starting again after
>> they're already started previously. Is there something wrong with
>> my configuration? This problems is causing hearbeat to give up
>> due to failure of squid.
>>
>> If I run "/etc/init.d/httpd start" when httpd is already running
>> then I get an exit code 0, but if I run "/etc/init.d/squid start"
>> when squid is already running then I get an exit code 1... so
>> heartbeat starts having problems.

The init.d script is broken - starting a started resource should
return success (i.e. 0), not an error. You should also check if the
initscripts implement a "status" command. Heartbeat will use this to
check if the resource is running on each node; if it returns an
error, heartbeat will try to stop and start it again.

As the return code from these scripts is the only information
heartbeat has as to the status of your resources, it is very very
very important that they return consistent results.

Have a read of this page:

  http://www.linux-ha.org/LSBResourceAgent

to see what is expected of an LSB (init.d) script. It's not even
worth trying to get heartbeat working properly unless your scripts
support the needed commands properly.
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to