Re: can't start postmaster as service - Mailing list pgsql-cygwin

From Jason Tishler
Subject Re: can't start postmaster as service
Date
Msg-id 20030214125448.GC1916@tishler.net
Whole thread Raw
In response to can't start postmaster as service  (Christian Strobl <ch_strobl@yahoo.de>)
Responses Re: can't start postmaster as service
List pgsql-cygwin
Christian,

On Thu, Feb 13, 2003 at 07:58:51PM +0100, Christian Strobl wrote:
> i wanted to start postgres at win2000 as service with
> the following commands:
>
> 1) cygrunsrv --install postmaster --path
> /usr/bin/postmaster --args "-
>
> 2)cygrunsrv -S ipc-daemon
>
> 3) D /usr/share/postgresql/data -i" --dep ipc-daemon
> --termsig INT --user postgres --shutdown
>
> 4) cygrunsrv -S postmaster

I hope that you really executed the following:

    $ ipc-daemon --install-as-service
    $ cygrunsrv --install postmaster --path /usr/bin/postmaster --args "-D /usr/share/postgresql/data -i" --dep
ipc-daemon--termsig INT --user postgres --shutdown 
    $ cygrunsrv -S ipc-daemon # actually this step is optional
    $ cygrunsrv -S postmaster

> BUT at the last command i get the follwing error-message:
> cygrunsrv: Error starting a service:
> QueryServiceStatus:  Win32 error 1062:

Note the following:

    $ fgrep 1062 /usr/include/w32api/winerror.h
    #define ERROR_SERVICE_NOT_ACTIVE 1062L

which is not good. :.)

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

pgsql-cygwin by date:

Previous
From: Jason Tishler
Date:
Subject: Re: Where is cygrunsrv ?
Next
From: "frank_lupo"
Date:
Subject: Re: shutdown postgres problem