[Pacemaker] Patch for pgsql RA

Florian Haas florian.haas at linbit.com
Tue May 18 07:13:19 UTC 2010


On 05/17/2010 09:45 PM, Serge Dubrouski wrote:
> Thanks. Then the patch will look like this:
> 
> --- a/heartbeat/pgsql	2010-05-03 01:20:16.000000000 -0600
> +++ b/heartbeat/pgsql	2010-05-17 13:43:04.000000000 -0600
> @@ -343,21 +343,10 @@
> 
>  # Validate most critical parameters
>  pgsql_validate_all() {
> -    if ! have_binary $SH
> -    then
> -        return $OCF_ERR_INSTALLED
> -    fi
> -
> -    if ! have_binary $OCF_RESKEY_pgctl
> -    then
> -        return $OCF_ERR_INSTALLED
> -    fi
> -
> -
> -    if ! have_binary $OCF_RESKEY_psql
> -    then
> -        return $OCF_ERR_INSTALLED
> -    fi
> +    check_binary $SH
> +    check_binary $OCF_RESKEY_pgctl
> +    check_binary $OCF_RESKEY_psql

This much was already pushed a couple of weeks ago:

http://hg.linux-ha.org/agents/rev/24877caa0ccd

> +    check_binary fuser
> 
>      return $OCF_SUCCESS
>  }

I've added the check_binary for fuser. Thanks!

http://hg.linux-ha.org/agents/rev/f53202ddf13d

Cheers,
Florian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20100518/353da4e0/attachment-0004.sig>


More information about the Pacemaker mailing list