Thread: cygrunsrv example

cygrunsrv example

From
"Henshall, Stuart - WCP"
Date:
Hello,
    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. I was wondering wether it might be a good
idea if someone where to mention this to the cygwin team (Jason? You seem
pretty well boned up). On the other hand if everyone else thinks -d2 is a
good default I'll just slip back to lurking :).
- Stuart


Re: cygrunsrv example

From
Fred Yankowski
Date:
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

Re: cygrunsrv example

From
Jason Tishler
Date:
Stuart,

On Wed, May 30, 2001 at 11:02:49AM +0100, Henshall, Stuart - WCP wrote:
> Hello,
>     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. I was wondering wether it might be a good
> idea if someone where to mention this to the cygwin team (Jason? You seem
> pretty well boned up). On the other hand if everyone else thinks -d2 is a
> good default I'll just slip back to lurking :).

Fred has already answered the above, but please translate "boned up"
into US English. :,)

Thanks,
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

RE: cygrunsrv example

From
"Henshall, Stuart - WCP"
Date:
Hmmm, perhaps I should engage brain b4 fingers :). Any way by boned up I was
meaning skilled with/ knowledgable about, and definitely no other meaning :)
- Stuart

> -----Original Message-----
> From:    Jason Tishler [SMTP:Jason.Tishler@dothill.com]
> Sent:    Wednesday, May 30, 2001 2:21 PM
> To:    Henshall, Stuart - WCP
> Cc:    'pgsql-cygwin@postgresql.org'
> Subject:    Re: [CYGWIN] cygrunsrv  example
>
> Stuart,
>
> On Wed, May 30, 2001 at 11:02:49AM +0100, Henshall, Stuart - WCP wrote:
> > Hello,
> >     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. I was wondering wether it might be a good
> > idea if someone where to mention this to the cygwin team (Jason? You
> seem
> > pretty well boned up). On the other hand if everyone else thinks -d2 is
> a
> > good default I'll just slip back to lurking :).
>
> Fred has already answered the above, but please translate "boned up"
> into US English. :,)
>
> Thanks,
> 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

Re: cygrunsrv example

From
Jason Tishler
Date:
Stuart,

On Wed, May 30, 2001 at 02:36:43PM +0100, Henshall, Stuart - WCP wrote:
> Hmmm, perhaps I should engage brain b4 fingers :). Any way by boned up I was
> meaning skilled with/ knowledgable about, and definitely no other meaning :)

Don't worry -- no offensive was taken.  I knew that it had good
connotations -- I just couldn't figure out what they were.  Good thing
we both speak "English." :,)

Thanks,
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