Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-cygwin by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group