Skip site navigation (1) Skip section navigation (2)

Re: problem with ipc-daemon2 start as a service

From: "Leeuw van der, Tim" <tim(dot)leeuwvander(at)nl(dot)unisys(dot)com>
To: 'jean-philippe jacoupy ' <jp(dot)jacoupy(at)caramail(dot)com>,pgsql-cygwin(at)postgresql(dot)org
Subject: Re: problem with ipc-daemon2 start as a service
Date: 2004-01-27 07:34:31
Message-ID: DD0DC14935B1D211981A00105A1B28DB0A7B4CFF@NL-ASD-EXCH-1 (view raw or flat)
Thread:
Lists: pgsql-cygwin
Hi,

the IPC daemon should be started with the following commands:

ipc-daemon2.exe --install-as-service

net start "cygwin ipc daemon 2"

The first installs it as a service, the 2nd makes sure the service runs. So
unless you configure the service to start automatically, then after
installation you only need the 2nd command to run the IPC daemon. And if you
start the service automatically, you don't have to worry about it anymore at
all.

regards,


--Tim

THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers. 



-----Original Message-----
From: pgsql-cygwin-owner(at)postgresql(dot)org
[mailto:pgsql-cygwin-owner(at)postgresql(dot)org]On Behalf Of jean-philippe
jacoupy 
Sent: woensdag 21 januari 2004 16:36
To: pgsql-cygwin(at)postgresql(dot)org
Subject: [CYGWIN] problem with ipc-daemon2 start as a service


Hi,

I've build from sources postgresql 7.4.1 with the same ./configure command
as described in this guide:

http://www.tishler.net/jason/software/postgresql/postgresql-7.4.1.README

This is what I get whenever I try to launch ipc-daemon2:

cray(at)lavieenrose ~
$ cygrunsrv -S ipc-daemon2
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:

I have already tryed to do the chmod thing, changed nothing.
Also I don't have any logs in /var/log/

But if I don't use ipc-daemon2 as a service then when I run step 8 I get
this:
<log>

        postgres(at)lavieenrose /usr/share/postgresql
        $ initdb -D ./data/
        The files belonging to this database system will be owned by user
"postgres".
        This user must also own the server process.

        The database cluster will be initialized with locale C.

        fixing permissions on existing directory ./data/... ok
        creating directory ./data//base... ok
        creating directory ./data//global... ok
        creating directory ./data//pg_xlog... ok
        creating directory ./data//pg_clog... ok
        selecting default max_connections... 10
        selecting default shared_buffers... 50
        creating configuration files... ok
        creating template1 database in ./data//base/1... FATAL:  could not
create shared
         memory segment: Not enough core
        DETAIL:  Failed system call was shmget(key=1, size=1081344, 03600).
        HINT:  This error usually means that PostgreSQL's request for a
shared memory se
        gment exceeded available memory or swap space. To reduce the request
size (curre
        ntly 1081344 bytes), reduce PostgreSQL's shared_buffers parameter
(currently 50)
         and/or its max_connections parameter (currently 10).
        The PostgreSQL documentation contains more information about shared
memo
        ry configuration.

        initdb: failed
</log>

Running system:
Windows XP Pro SP 1

cygcheck: 
cray(at)lavieenrose ~
$ cygcheck -c cygwin cygipc postgresql
Cygwin Package Information
Package              Version        Status
cygipc               2.02-1         OK
cygwin               1.5.6-1        OK

E-mail, Dialogue en direct et SMS gratuits sur minitel : 3615 CARAMAIL


---------------------------(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

pgsql-cygwin by date

Next:From: Zeilhofer, PeterDate: 2004-01-27 08:43:53
Subject: PostgreSQL windows native?
Previous:From: Natalia OlmosDate: 2004-01-23 10:20:22
Subject: initdb -> not found cygcrypt-0.dll

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group