Re: Trouble with Cygrunsrv

From: "George Weaver" <georgew1(at)mts(dot)net>
To: <pgsql-cygwin(at)postgresql(dot)org>, "Wim Kerkhoff" <wim(at)nyetwork(dot)org>
Subject: Re: Trouble with Cygrunsrv
Date: 2003-01-09 17:25:26
Message-ID: 001f01c2b804$30e59f10$020ba18e@George
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin

MessageThanks Wim,

I can start the postmaster using pg_ctl without problem, so it is working without a problem.

My problem is trying to get it set up as a service to start automatically when I boot my system.

George
----- Original Message -----
From: Wim Kerkhoff
To: 'George Weaver' ; pgsql-cygwin(at)postgresql(dot)org
Sent: Thursday, January 09, 2003 11:02 AM
Subject: RE: [CYGWIN] Trouble with Cygrunsrv

cygrunsrv --install postmaster --path /bin/postmaster --args "-l log -o -i" --dep ipc-daemon --termsig INT --shutdown

which installed the service.

When I try and start the service, it shows the service starting but then it stops and I get the following message:

"The postmaster service on Local Computer started and then stopped."

Can someone tell me what I've missed?

The first thing I do when the PostgreSQL server fails to start, is check the Windows Event Log. Typically it'll show the real reason that the server failed to start. Also, make sure that the cygipc package is installed and that the Cygwin IPC Service is starting. Another problem I've seen is stale .pid files in the PostgreSQL data directory.

Hope that helps...

Wim

In response to

Responses

Browse pgsql-cygwin by date

  From Date Subject
Next Message Jess Regal 2003-01-09 17:48:44 Re: Trouble with Cygrunsrv
Previous Message Wim Kerkhoff 2003-01-09 17:02:40 Re: Trouble with Cygrunsrv