Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com List-Subscribe: List-Archive: List-Post: List-Help: , Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com X-Authentication-Warning: shell-3.enteract.com: fcy set sender to fred AT ontosys DOT com using -f Date: Thu, 28 Jun 2001 15:58:37 -0500 From: Fred Yankowski To: cygwin-apps AT cygwin DOT com Cc: pgsql-cygwin AT postgresql DOT org Subject: new '--shutdown' option for cygrunsrv Message-ID: <20010628155837.A90733@enteract.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i The latest CVS version of cygrunsrv now has a '--shutdown' option, enabling a feature where cygrunsrv notices the start of system shutdown and sends the termination signal to the managed application process at that time, giving the application a chance to shutdown itself cleanly. This feature is useful with applications such as the PostgreSQL postmaster, which won't start up correctly if it was previously terminated without a chance to clean up some files (postmaster.pid, in particular). See the end of for instructions on getting cygrunsrv from CVS. Note that PostgreSQL also needs a patch to ignore SIGHUP for shutdown on Cygwin to work properly. -- Fred Yankowski fred AT OntoSys DOT 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