Re: Start up and shutdown scripts for postgres on cygwin - Mailing list pgsql-cygwin

From Jason Tishler
Subject Re: Start up and shutdown scripts for postgres on cygwin
Date
Msg-id 20010529135338.E498@dothill.com
Whole thread Raw
In response to Start up and shutdown scripts for postgres on cygwin  ("Richard Church" <rfchurch@hotmail.com>)
List pgsql-cygwin
Richard,

On Mon, May 28, 2001 at 01:27:12AM -0000, Richard Church wrote:
> I am new to cygwin how I can use the equivalent of Linux rc.d scripts in
> cygwin to get postgres started
>
> I want to run postgres automatically after I start cygwin, and get it to
> shutdown when cygwin shuts down.

Try using cygrunsrv that is part of Cygwin now -- the README has a
PostgreSQL example in it.

> It is always necessary to redefine the PGDATA variable after I start. The
> variables don't remain after cygwin shuts down.
>
> What sort of script can I use to achieve this?

You can always add this to your .bash_profile (just like on Linux).

Jason

--
Jason Tishler
Director, Software Engineering       Phone: 732.264.8770 x235
Dot Hill Systems Corp.               Fax:   732.264.8798
82 Bethany Road, Suite 7             Email: Jason.Tishler@dothill.com
Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com

pgsql-cygwin by date:

Previous
From: Jason Tishler
Date:
Subject: Re: Re: Error ?
Next
From: Jerry Asher
Date:
Subject: building postgres.exe ./configure dies