Re: Running postmaster as native service without

From: "Tim Finch, FosterFinch Ltd" <tim(at)fosterfinch(dot)co(dot)uk>
To: "Henshall, Stuart - WCP" <SHenshall(at)westcountrypublications(dot)co(dot)uk>
Cc: pgsql-cygwin(at)postgresql(dot)org
Subject: Re: Running postmaster as native service without
Date: 2002-02-18 16:51:57
Message-ID: 5.1.0.14.0.20020218165026.02564588@mail.cix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin

Very helpful Stuart, thank you very much.

At 14:20 18/02/2002 +0000, you wrote:
>If you are running a flavour of NT you can run it as a service using
>cygrunsrv (and I definitly would advise against 9x for a server
>anyway). You must already have the cygipc installed as a service, then
>you could do something like this (not tested):
>cygrunsrv --install postmaster \
> --path /bin/postmaster \
> --args "-D /usr/data -i -o '-e -o /var/log/postgres.log'" \
> --dep ipc-daemon --termsig INT \
> --user <username>
>Cheers,
>- Stuart
>
> > -----Original Message-----
> > From: Tim Finch, FosterFinch Ltd [mailto:tim(at)fosterfinch(dot)co(dot)uk]
> > Sent: 17 February 2002 23:28
> > To: Jason Tishler
> > Cc: pgsql-cygwin(at)postgresql(dot)org
> > Subject: Re: [CYGWIN] Compiling 7.1.3 pgsql under cygwin 1.3 on W2000
> >
> >
> > Jason
> >
> > Thanks! I feel a bit of a duffer as I discovered this very
> > option about 10
> > mins after posting my message. I have indeed used the
> > prebuilt one. However
> > I have only got as far as trying to start postmaster once,
> > which it did OK,
> > but then I thought I could exit Cygwin to allow postmaster to run in
> > background and caused myself no end of grief -- is it true
> > that cygwin must
> > remain loaded whilst pgsql runs? Anyway to 'hide' the cygwin
> > window (i.e.
> > not even have it minimised, or sent to the tray for example?)
> >
> > Thanks
> >
> > Tim.
> >
> > At 21:19 16/02/2002 -0500, Jason Tishler wrote:
> > >Tim,
> > >
> > >On Sat, Feb 16, 2002 at 10:51:30AM +0000, Tim Finch,
> > FosterFinch Ltd wrote:
> > > > This is my first attempt at using cygwin so that I can
> > try and compile
> > > > pgsql for Windows 2000.
> > > >
> > > > [snip]
> > >
> > >Why don't you just use the pre-built binary that it installable by
> > >Cygwin's setup.exe?
> > >
> > > http://cygwin.com/ml/cygwin-announce/2002/msg00048.html
> > >
> > >Jason
> >
> >
> >
> > ---------------------------(end of
> > broadcast)---------------------------
> > TIP 3: if posting/reading through Usenet, please send an appropriate
> > subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> > message can get through to the mailing list cleanly
> >

In response to

Browse pgsql-cygwin by date

  From Date Subject
Next Message Tim Finch, FosterFinch Ltd 2002-02-18 17:06:47 Re: Compiling 7.1.3 pgsql under cygwin 1.3 on W2000
Previous Message Jason Tishler 2002-02-18 16:26:37 Re: Compiling 7.1.3 pgsql under cygwin 1.3 on W2000