X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 8160B9F946D for ; Mon, 22 May 2006 09:35:57 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 74401-04 for ; Mon, 22 May 2006 09:35:54 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 520A19F9316 for ; Mon, 22 May 2006 09:35:54 -0300 (ADT) Received: from alvh.no-ip.org (201-221-200-231.bk11-dsl.surnet.cl [201.221.200.231]) by svr4.postgresql.org (Postfix) with ESMTP id 8D2C45B1BF5 for ; Mon, 22 May 2006 12:33:49 +0000 (GMT) Received: by alvh.no-ip.org (Postfix, from userid 1000) id F41F3C31DC5; Mon, 22 May 2006 08:33:45 -0400 (CLT) Date: Mon, 22 May 2006 08:33:45 -0400 From: Alvaro Herrera To: Nicola Mauri Cc: pgsql-admin@postgresql.org Subject: Re: Init script for multiple postmasters Message-ID: <20060522123345.GB8586@surnet.cl> Mail-Followup-To: Nicola Mauri , pgsql-admin@postgresql.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11+cvs20060403 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/287 X-Sequence-Number: 21819 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