Re: postgresql start/stop/status script

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Baldur Norddahl <bbn-pgsql(dot)general(at)clansoft(dot)dk>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: postgresql start/stop/status script
Date: 2005-04-20 06:13:04
Message-ID: 200504200813.04658.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Baldur Norddahl wrote:
> Is there a better way to query the status of postgresql? I would
> expect it to at least check that the process in the PID is actually
> running and that it is a postgresql process.

Maybe try

test $(readlink /proc/$pid/exe) = /usr/bin/postgres

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alexandre 2005-04-20 06:16:13 Re: Simplified (a-la [G|N]DBM) DB access
Previous Message Alexandre 2005-04-20 06:05:53 Re: Simplified (a-la [G|N]DBM) DB access