On Tue, Jan 11, 2011 at 11:00:28AM +0100, [email protected] wrote:
> > Dejan Muhamedagic wrote on 04.01.2011 18:14:35:
> > 
> > Hi,
> > 
> > This is a similar issue we recently discussed about SAPInstance
> > and perhaps it can be resolved in a similar way. That is to
> > start the listener only in case there are already some oracle
> > processes running and we want to do a better test.
> > 
> > See the attached patch.
> 
> Got your point. Just one mind: I would like to keep checking the database 
> network services in case the process check was successfull. So the network 
> services get restarted, if just one of this processes fail.
> 
> So how about this slightly changed patch:
> 
> diff -r 79a57924fc38 heartbeat/SAPDatabase
> --- a/heartbeat/SAPDatabase     Thu Dec 30 18:59:47 2010 +0100
> +++ b/heartbeat/SAPDatabase     Tue Jan 11 10:54:54 2011 +0100
> @@ -643,7 +643,12 @@
>  #
>  sapdatabase_monitor() {
>    strict=$1
> -  rc=$OCF_SUCCESS
> +
> +  sapdatabase_status
> +  rc=$?
> +  if [ $rc -ne $OCF_SUCCESS ]; then
> +    return $rc
> +  fi
> 
>    case $DBTYPE in
>      ADA) x_server_status
> @@ -656,8 +661,7 @@
> 
>    if [ $strict -eq 0 ]
>    then
> -    sapdatabase_status
> -    rc=$?
> +    return $rc
>    else
>      if [ $DBJ2EE_ONLY -eq 0 ]
>      then

OK. I'll apply this one.

Cheers,

Dejan

> > Thanks,
> > Dejan
> 
> Regards,
> Alex
> 
> _______________________________________________________
> Linux-HA-Dev: [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to