pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tony_Chao@putnam.com
To: pgsql-admin@postgresql.org
Subject: auto removing stale pid for postmaster NT service
Date: Wed, 11 Sep 2002 14:30:10 -0400
Message-ID: <OFB91CFC47.33257F49-ON85256C31.00654C8C@putnaminv.com> (raw)

Hi,

I've seen this question a couple of times in the archives, but I wasn't
able to find a solution. Please advise if you know of a workaround.

I have postmaster install as a service throught cygrunsrv on my win2k
machine. The postmaster service starts and stops fine most of the time.
But if the server crashes without a proper shutdown, the postmaster.pid
is left behind and the postmaster service fails to start at the next boot.

Is there a way to delete stale postmaster.pid on boot-up before
the postmaster service is attempted to be started?

Thanks
-Tony





view thread (7+ messages)  latest in thread

Message-ID: <OFB91CFC47.33257F49-ON85256C31.00654C8C@putnaminv.com>
Permalink:  ../OFB91CFC47.33257F49-ON85256C31.00654C8C@putnaminv.com/
Also on:    postgresql.org/message-id/OFB91CFC47.33257F49-ON85256C31.00654C8C@putnaminv.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: Tony_Chao@putnam.com
  Subject: Re: auto removing stale pid for postmaster NT service
  In-Reply-To: <OFB91CFC47.33257F49-ON85256C31.00654C8C@putnaminv.com>
  References: <OFB91CFC47.33257F49-ON85256C31.00654C8C@putnaminv.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox