[Linux-HA] Newbie: Debian, Apache and Heartbeat
Le Roux, Hendrik
hendrik.p.leroux at siemens.com
Wed Aug 10 22:42:50 MDT 2005
=> -----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
Mine is something like:
host:/etc/ha.d/resource.d # cat apache
case $1 in
start) /srv/www/bin/apachectl startssl;;
stop) /srv/www/bin/apachectl stop;;
Hope it helps.
Note: The information in this e-mail is confidential and is intended solely
for the addressee. If you have received this e-mail in error, you are hereby
notified that any review, copying or distribution is strictly prohibited.
Please inform the sender immediately and destroy the original. Siemens
Limited and/or its subsidiaries accepts no liability of whatever nature for
any loss, liability, damage or expense resulting directly or indirectly from
access to this message and any files or links that are attached hereto.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Linux-HA