delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/19/17:59:52

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <20030319225936.52214.qmail@web14301.mail.yahoo.com>
Date: Wed, 19 Mar 2003 14:59:36 -0800 (PST)
From: Sys <sys AT yahoo DOT com>
Subject: cygrunsrv + postgresql stale pid work around
To: cygwin AT cygwin DOT com
MIME-Version: 1.0

I've seen this problem come up on various mailing
lists and wanted to share my work-around.


Create a script file (name it
/usr/bin/postmaster_service) with the following
contents:
rm /usr/share/postgresql/data/postmaster.pid
exec /usr/bin/postmaster -D /usr/share/postgresql/data
-i


create cygrunsrv to call postmasterservice instead of
postmaster.

so:
cygrunsrv --install postmaster_service --path
/usr/bin/postmaster_service --dep ipc-daemon --termsig
INT --shutdown


voila! that should do it.
windows will be smart enough to not let you start
service when it's already started.
so as long as you dont manually run postmaster and
then try to start postmaster_service
you should be ok.

-Tony



__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019