delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/11/13/15:45:04

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
Date: Wed, 13 Nov 2002 15:50:09 -0500
From: Jason Tishler <jason AT tishler DOT net>
Subject: Re: [patch] postgresql 'rc' like start script
In-reply-to: <008501c26e4b$66759660$686607d5@BRAMSCHE>
To: Ralf Habacker <Ralf DOT Habacker AT freenet DOT de>
Cc: cygwin AT cygwin DOT com
Mail-followup-to: Ralf Habacker <Ralf DOT Habacker AT freenet DOT de>, cygwin AT cygwin DOT com
Message-id: <20021113205009.GE800@tishler.net>
MIME-version: 1.0
User-Agent: Mutt/1.4i
References: <Pine DOT GSO DOT 4 DOT 44 DOT 0210071310220 DOT 29044-100000 AT slinky DOT cs DOT nyu DOT edu>
<008501c26e4b$66759660$686607d5 AT 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/

- Raw text -


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