Re: Service reboot leaves postmaster.pid - Mailing list pgsql-cygwin

From Fred Yankowski
Subject Re: Service reboot leaves postmaster.pid
Date
Msg-id 20010615115341.A15896@enteract.com
Whole thread Raw
In response to RE: Service reboot leaves postmaster.pid  ("Henshall, Stuart - WCP" <SHenshall@westcountrypublications.co.uk>)
List pgsql-cygwin
I just tried re-building postgres for cygwin, using patches only to
ignore SIGHUP and not my other service-management cruft.
Unfortunately, testing shows that this doesn't suffice to get postgres
to start up cleanly after NT restart when run under cygrunsrv.  The
postmaster.pid file is still left around.

My plan to create a patch for cygrunsrv that allows it to send a
signal to the managed service process when it (cygrunsrv) is notified
that NT is shutting down.

Note that someone else on the Cygwin email list reports occasional
problems where cygrunsrv completely fails to start after NT restart.
In their case they're using it for sshd, not postgres, but even so I'm
somewhat concerned that cygrunsrv may have some timing-related
initialization problem.

On Fri, Jun 15, 2001 at 08:53:33AM +0100, Henshall, Stuart - WCP wrote:
> Thanks for the info, do you have a patch for ignoring SIGHUP? If not I guess
> it'll be time to delve into the source :).

--
Fred Yankowski           fred@OntoSys.com      tel: +1.630.879.1312
Principal Consultant     www.OntoSys.com       fax: +1.630.879.1370
OntoSys, Inc             38W242 Deerpath Rd, Batavia, IL 60510, USA

pgsql-cygwin by date:

Previous
From: Jason Tishler
Date:
Subject: Cygwin contrib patch
Next
From: Fred Yankowski
Date:
Subject: cygrunsrv patch for system shutdown handling