[Linux-HA] Newbie: Debian, Apache and Heartbeat
Alan Robertson
alanr at unix.sh
Thu Aug 11 23:29:35 MDT 2005
Horms wrote:
> On Thu, Aug 11, 2005 at 07:32:29AM -0600, Alan Robertson wrote:
>
>>Horms wrote:
>>
>>>On Thu, Aug 11, 2005 at 06:42:50AM +0200, Le Roux, Hendrik wrote:
>>>
>>>
>>>>=> -----Original Message-----
>>>>=> From: Jason W. Allen [mailto:jallen at mpgis.net]
>>>>=> Heartbeat now uses the
>>>>=> /etc/init.d/apache startup script. However, this script
>>>>=> doesn't allow
>>>>=> multiple instances, or if it does, it won't take the
>>>>=> arguments needed to
>>>>=> load from different httpd.conf files.
>>>>
>>>>I had the same problem with "apache startssl".
>>>>The answer was to create my own apache startup script in
>>>>/etc/ha/d/resource.d with my custom startup commands.
>>>>The basic guidelines were that heartbeat only issued "start" and "stop" to
>>>>the scripts, so you must then tell it what you want do for "start" and for
>>>>"stop".
>>>>Mine is something like:
>>>>
>>>>host:/etc/ha.d/resource.d # cat apache
>>>>#!/bin/sh
>>>>#
>>>>case $1 in
>>>> start) /srv/www/bin/apachectl startssl;;
>>>> stop) /srv/www/bin/apachectl stop;;
>>>>esac
>>>>
>>>>Hope it helps.
>>>
>>>
>>>Hi,
>>>
>>>Hopefully I can shed some light on this.
>>>
>>>If you have installed heartbeat on Debian, and you used .deb packages
>>
>>>from Debian.Org or UltraMonkey.Org, or compiled them from CVS or a
>>
>>>tarball, then this is basically the packaging that I maintain.
>>>
>>>I had a report a while back that the heartbeat-supplied apache resource
>>>did not work with Debian, and that by removing it the apache-package
>>>provided script was used, and all was well. So that is what
>>>the packaging I maintain (which you are probably using) does right now.
>>>
>>>As a side effect of this, I doubt very much if you can have
>>>multiple instances of apache. And I also doubt it honours
>>>options that would normally work if the heartbeat-supplied apache script
>>>accept.
>>>
>>>Oviously this is a problem, thanks for bringing it to my attention.
>>>Now, what to do about it?
>>>
>>>It seems to me that the best thing to try would be to fix the
>>>heartbeat-supplied apache script so it works with Debian.
>>>To be honest I have no idea what the problem is, so I can't say
>>>how easy or hard that would be. But what I can say is that
>>>it would be totally awsome if you could dig into this a bit deeper
>>>(I know this is a co-out, but I'm really busy and any help I can get
>>>is greatly appreciated.)
>>
>>I fixed several apache2 bugs in 2.0 OCF RA. That's probably what was
>>causing the grief.
>
>
> The problem was reported against 1.2.3, so I don't think its an OCF RA
> thing.
The OCF RA was copied from the heartbeat RA. So, both had the same bug,
but I think I only fixed it in the OCF RA.
--
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
mailing list