[Linux-HA] Problem with starting Apache and MySQL
andrew at beekhof.net
Mon Oct 19 04:03:35 MDT 2009
On Mon, Oct 19, 2009 at 10:11 AM, dembi <dembi at ukr.net> wrote:
> 1. I have a very simple Apache configuration.
> I can start Apache from init.d. Please see:
> sudo /etc/init.d/apache2 start
> Starting web server: apache2.
> joe at aps-1:~$ sudo /etc/init.d/apache2 status
> Apache is running (pid 1565)..
> And If I use lsb script all work fine.
> If I kill Apache process, he restarted after 5 sec as I set in option of
> <primitive id="apache" class="lsb" provider="heartbeat"
> <op id="apache-app_mon" interval="5s" name="monitor"
> As you can see Apache has successfully working.
> 2. But If I manually try to start ocf script I get following error:
> /usr/lib/ocf/resource.d/heartbeat/apache start
> /usr/lib/ocf/resource.d/heartbeat/apache: line 37:
> /resource.d/heartbeat/.ocf-shellfuncs: No such file or directory
> May be someone can to explain me what is it the error and how I can fix it?
Where'd you get the packages from, looks like there is an expansion
error in /etc/ha.d/shellfuncs
The correct file to include is /usr/lib/ocf/resource.d/heartbeat/.ocf-shellfuncs
More information about the Linux-HA