Re: service start script

From: "Myles Bogner, Ph(dot)D(dot)" <dr(dot)myles(dot)bogner(at)asolutions(dot)com>
To: pgsql-cygwin(at)postgresql(dot)org
Subject: Re: service start script
Date: 2002-09-11 00:46:10
Message-ID: 3D7E9252.5020103@asolutions.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin

Michael,

Your technique is very similar to what we do to ensure the
postmaster starts every time. We install ours as an Windows service.

Myles

Michael Adler wrote:

>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
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 6: Have you searched our list archives?
>
>http://archives.postgresql.org
>
>
>

In response to

Browse pgsql-cygwin by date

  From Date Subject
Next Message Michel Verplancke 2002-09-11 16:00:21 PROBLEM with W2K installing postgresql
Previous Message Michael Adler 2002-09-10 14:57:36 service start script