service start script

From: Michael Adler <adler(at)glimpser(dot)org>
To: pgsql-cygwin(at)postgresql(dot)org
Cc: Jason Tishler <jason(at)tishler(dot)net>
Subject: service start script
Date: 2002-09-10 14:57:36
Message-ID: Pine.NEB.4.44.0209101046150.19294-100000@reva.sixgirls.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin


In order to reliably start up the postmaster, I have been using a script
to wrap around the postmaster binary and clean up some files that might
otherwise prevent the postmaster from starting.

The script looks something like this:

#!/usr/bin/bash
PGDATA=/usr/local/pgsql/data
rm -f $PGDATA/postmaster.pid
rm -f /tmp/.s.PGSQL.5432.lock /tmp/.s.PGSQL.5432
exec /bin/postmaster

This improved reliability 8 months ago.

Does anyone else use/need something like this? Or do the newer versions
simply work better without this functionality?

Mike Adler

In response to

Responses

Browse pgsql-cygwin by date

  From Date Subject
Next Message Myles Bogner, Ph.D. 2002-09-11 00:46:10 Re: service start script
Previous Message Dave Page 2002-09-10 14:30:11 Re: pb on insertion in the database