Re: [GENERAL] Shell script to determine if PostgreSQL is accepting connections?

2007-03-18 Thread Reid Thompson
On 10:44 Sun 18 Mar , Jeff Ross wrote: > Hi, > > Is there a simple way to determine with a shell script if PostgreSQL is > ready to accept connections? > > PostgreSQL is started and controlled by daemontools. This shell script > is called by the /etc/netstart script as a part of bringing up t

[GENERAL] Shell script to determine if PostgreSQL is accepting connections?

2007-03-18 Thread Jeff Ross
Hi, Is there a simple way to determine with a shell script if PostgreSQL is ready to accept connections? PostgreSQL is started and controlled by daemontools. This shell script is called by the /etc/netstart script as a part of bringing up the first interface. Unfortunately, it will never