Re: Init script for multiple postmasters

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Nicola Mauri <Nicola(dot)Mauri(at)saga(dot)it>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Init script for multiple postmasters
Date: 2006-05-22 12:33:45
Message-ID: 20060522123345.GB8586@surnet.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Nicola Mauri wrote:

> In this scenario the cluster manager cannot determine wether a single
> instance is running or down.
> I'm going to modify initscripts and use a differente approach to probe
> postmasters status, but I'm not sure if this is good:
>
> ps ax | grep postmaster | grep /var/lib/pgsql2/data2
> ps ax | grep postmaster | grep /var/lib/pgsql/data
>
> What would you suggest?

pg_ctl -d /var/lib/pgsql2/data2 status

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Ola Sandbu 2006-05-22 13:30:24 Re: Init script for multiple postmasters
Previous Message Nicola Mauri 2006-05-22 11:16:03 Init script for multiple postmasters