Re: Start up and shutdown scripts for postgres on cygwin

From: Jason Tishler <Jason(dot)Tishler(at)dothill(dot)com>
To: Richard Church <rfchurch(at)hotmail(dot)com>
Cc: pgsql-cygwin(at)postgresql(dot)org
Subject: Re: Start up and shutdown scripts for postgres on cygwin
Date: 2001-05-29 17:53:38
Message-ID: 20010529135338.E498@dothill.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)Tishler(at)dothill(dot)com
Hazlet, NJ 07730 USA WWW: http://www.dothill.com

In response to

Browse pgsql-cygwin by date

  From Date Subject
Next Message Jerry Asher 2001-05-29 20:28:43 building postgres.exe ./configure dies
Previous Message Jason Tishler 2001-05-29 17:48:29 Re: Re: Error ?