This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: [patch] postgresql 'rc' like start script
- From: Jason Tishler <jason at tishler dot net>
- To: Ralf Habacker <Ralf dot Habacker at freenet dot de>
- Cc: cygwin at cygwin dot com
- Date: Wed, 13 Nov 2002 15:50:09 -0500
- Subject: Re: [patch] postgresql 'rc' like start script
- 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/