Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 3A379476103 for ; Wed, 11 Sep 2002 14:32:39 -0400 (EDT) Received: from peekskill1.putnaminv.com (peekskill1.putnaminv.com [208.204.155.237]) by postgresql.org (Postfix) with ESMTP id 92C31475DF8 for ; Wed, 11 Sep 2002 14:32:38 -0400 (EDT) Received: from piscrubber02 (piscrubber02 [155.39.162.2]) by peekskill1.putnaminv.com (Switch-2.2.3/Switch-2.2.3) with SMTP id g8BIWce06588 for ; Wed, 11 Sep 2002 14:32:39 -0400 (EDT) Received: from 155.39.172.63 by piscrubber02 (InterScan E-Mail VirusWall NT); Wed, 11 Sep 2002 14:30:35 -0400 Subject: auto removing stale pid for postmaster NT service To: pgsql-admin@postgresql.org X-Mailer: Lotus Notes Release 5.0.3 (Intl) 21 March 2000 Message-ID: From: Tony_Chao@putnam.com Date: Wed, 11 Sep 2002 14:32:31 -0400 X-MIMETrack: Serialize by Router on PISMTPMTA01/AND/PutnamInv(Release 5.0.11 |July 24, 2002) at 09/11/2002 02:32:38 PM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/128 X-Sequence-Number: 5667 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