auto removing stale pid for postmaster NT service

From: Tony_Chao(at)putnam(dot)com
To: pgsql-admin(at)postgresql(dot)org
Subject: auto removing stale pid for postmaster NT service
Date: 2002-09-11 18:30:10
Message-ID: OFB91CFC47.33257F49-ON85256C31.00654C8C@putnaminv.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tony_Chao 2002-09-11 18:32:31 auto removing stale pid for postmaster NT service
Previous Message Tony Reina 2002-09-11 14:55:17 Primary key order matters?