Re: cygrunsrv example - Mailing list pgsql-cygwin

From Fred Yankowski
Subject Re: cygrunsrv example
Date
Msg-id 20010530074702.A57303@enteract.com
Whole thread Raw
In response to cygrunsrv example  ("Henshall, Stuart - WCP" <SHenshall@westcountrypublications.co.uk>)
List pgsql-cygwin
On Wed, May 30, 2001 at 11:02:49AM +0100, Henshall, Stuart - WCP wrote:
>     I noticed that the example in cygrunsrv readme:
>   cygrunsrv --install postmaster2 \
>     --path /usr/bin/postmaster \
>     --args "-D /usr/share/postgresql/data -i -d 2 -o '-o
> /var/log/postgres.log'" \
>     --dep ipc-daemon --termsig INT --user postgresql
>
>     has -d2 in the options.

That example is not a general recommendation of how to configure
postgresql with cygrunsrv, but rather just a sample (near worst case)
configuration that happens to display real usage of many of the
cygrunsrv options.  I intend to write up some documentation specific
to the postgresql-with-cygrunsrv case.  Here's a sampler:

The simplest configuration might be something like this:

   cygrunsrv --install postmaster \
     --path /usr/bin/postmaster \
     --dep ipc-daemon

assuming that PGDATA is set in the system environment such that the
service picks it up as a default.

A more typical configuration might look like this:

   cygrunsrv --install postmaster \
     --path /usr/bin/postmaster \
     --args "-D /usr/share/postgresql/data -i" \
     --dep ipc-daemon

--
Fred Yankowski           fred@OntoSys.com      tel: +1.630.879.1312
Principal Consultant     www.OntoSys.com       fax: +1.630.879.1370
OntoSys, Inc             38W242 Deerpath Rd, Batavia, IL 60510, USA

pgsql-cygwin by date:

Previous
From: "Henshall, Stuart - WCP"
Date:
Subject: cygrunsrv example
Next
From: Jason Tishler
Date:
Subject: Re: building postgres.exe ./configure dies