On Tue, Aug 28, 2007 at 09:26:52AM +0200, Martin Bene wrote: > Hi, > > I've just run into a problem trying to use apache resource agent in > heartbeat 2.1.2; cluster is running with v1 style configuration. > > If there's an error in the apache config file, startup hangs > indefinitely: > > ocf_run $HTTPD $HTTPDOPTS $OPTIONS -f $CONFIGFILE > tries=0 > while : # wait until the user set timeout > do > monitor_apache > ec=$? > if [ $ec -eq $OCF_NOT_RUNNING ] > then > tries=`expr $tries + 1` > ocf_log info "waiting for apache $CONFIGFILE to come up" > sleep 1 > else > break > fi > done > return $ec > } > > Ocf_run tries to start the apache server; the followin loop doesn't seem > to have any exit (other than apache comming up).
True. The RA will be stopped once the timeout defined in the CIB is reached. That's how it is supposed to work. > > Bye, Martin > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
