Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Wed, 13 Nov 2002 15:50:09 -0500
From: Jason Tishler <jason@tishler.net>
Subject: Re: [patch] postgresql 'rc' like start script
In-reply-to: <008501c26e4b$66759660$686607d5@BRAMSCHE>
To: Ralf Habacker <Ralf.Habacker@freenet.de>
Cc: cygwin@cygwin.com
Mail-followup-to: Ralf Habacker <Ralf.Habacker@freenet.de>, cygwin@cygwin.com
Message-id: <20021113205009.GE800@tishler.net>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
Content-disposition: inline
User-Agent: Mutt/1.4i
References: <Pine.GSO.4.44.0210071310220.29044-100000@slinky.cs.nyu.edu>
 <008501c26e4b$66759660$686607d5@BRAMSCHE>

Ralf,

On Mon, Oct 07, 2002 at 11:49:24PM +0200, Ralf Habacker wrote:
> May be this could be the startpoint for a more unix like
> standardisation of cygwin services like postgresql, apache, cron,
> inetd apache: (at leased)

I would prefer to leverage off of Sergey's sysvinit package:

    http://cygwin.com/ml/cygwin/2002-11/msg00669.html

The following is the only required diff (besides the expected ones) to
PostgreSQL's contrib/start-scripts/linux:

@@ -76,7 +76,7 @@ case $1 in
        ;;
   restart)
        echo -n "Restarting PostgreSQL: "
-       su - $PGUSER -c "$DAEMON restart -D '$PGDATA' -s -m fast"
+       su - $PGUSER -c "$DAEMON restart -D '$PGDATA' -s -m fast -l $PGLOG"
        echo "ok"
        ;;
   status)

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

--
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/

