Re: Trouble starting ipc-daemon as a service

Поиск
Список
Период
Сортировка
От Dave Steenburg
Тема Re: Trouble starting ipc-daemon as a service
Дата
Msg-id 000101c32f96$57004060$0301a8c0@354682a
обсуждение исходный текст
Ответ на Trouble starting ipc-daemon as a service  ("Dave Steenburg" <dsteenburg@rogers.com>)
Ответы Re: Trouble starting ipc-daemon as a service  (Jason Tishler <jason@tishler.net>)
Список pgsql-cygwin
Good question!  Yet I suspect if it were a permissions issue the service would not first start and then stop.  I would expect some kind of request denied message.  Still, I won't throw out any possibilities at this point.  With the XP Home version I'm not sure how I would find out.  The account has admin privileges but I don't know how I would get more detailed info about what that includes.  (I knew how to do it on NT but this XP is more automated, and I don't know how to get behind the curtain)  So, do you know how
 
As I write this, I re-installed the IPC daemon as a service to see how I might get more details about the error message, and now it works!  I don't know if it makes a difference that this time I installed it from the Cygwin prompt rather than from a batch file. 
 
But now the problem has shifted.  Now when I try to start the postmaster service, it returns a system error 1069: "The service did not start due to a logon error."  I am logged on as "postgres" (an admin account) and in the Service Manager it shows "Log on as .\postgres" so I'm not sure where the problem comes from.  Any ideas. 
-----Original Message-----
From: Godshall Michael [mailto:Michael_Godshall@gmachs.com]
Sent: June 10, 2003 4:22 PM
To: 'Dave Steenburg'
Subject: RE: [CYGWIN] Trouble starting ipc-daemon as a service

Does the postgres local user account have permission to start and stop services
-----Original Message-----
From: Dave Steenburg [mailto:dsteenburg@rogers.com]
Sent: Tuesday, June 10, 2003 3:20 PM
To: pgsql-cygwin@postgresql.org
Subject: [CYGWIN] Trouble starting ipc-daemon as a service

I'm running on Windows XP Home version, using Cygwin 1.3.14-1, PostgreSQL 7.2.3, and the ipc-daemon in Cygipc 1.11-1.  I have followed the instructions in usr/doc/Cygwin/postgresql-7.2.3.README.  I put it into a small script file that looks like:
 
    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
    mkdir /usr/share/postgresql/data
    chown postgres /usr/share/postgresql/data
    initdb -D /usr/share/postgresql/data
    net start ipc-daemon
    net start postmaster
 
 Yet when the script gets to "net start ipc-daemon" I get the message:
    The Cygwin IPC Daemon service is starting.
    The Cygwin IPC Daemon service could not be started.
    
So, of course, the postmaster service also failed.  When I tried going through the Service Manager to start ipc-daemon, it said the service on Local System "started then stopped" and suggested "Some services stop automatically if they have no work to do"   
 
Can anyone suggest what I might be doing wrong?
 
Dave

В списке pgsql-cygwin по дате отправления:

Предыдущее
От: "Vincent Hikida"
Дата:
Сообщение: Re: Trouble starting ipc-daemon as a service
Следующее
От: "Dave Steenburg"
Дата:
Сообщение: FW: Trouble starting ipc-daemon as a service