Re: postgresql start/stop/status script - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: postgresql start/stop/status script
Date
Msg-id 200504200813.04658.peter_e@gmx.net
Whole thread Raw
In response to postgresql start/stop/status script  (Baldur Norddahl <bbn-pgsql.general@clansoft.dk>)
Responses Re: postgresql start/stop/status script
Re: postgresql start/stop/status script
List 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/

pgsql-general by date:

Previous
From: Alexandre
Date:
Subject: Re: Simplified (a-la [G|N]DBM) DB access
Next
From: Alexandre
Date:
Subject: Re: Simplified (a-la [G|N]DBM) DB access