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