problem starting postmaster as a service

Started by Melanie Bergeronabout 22 years ago2 messagesgeneral
Jump to latest
#1Melanie Bergeron
mbergeron_pg@globeecom.com

Hi all!

I have a big problem installing postmaster as a service under Windows XP
with cygwin. I already installed postgresql on 2 machines without
problems but this machine really seem to don't like postgresql ;) I do
exactly the procedure indicated in the README file but I always got the
same problem with this machine. When I try to start postmaster
[cygrunsrv -S postmaster] who was previously installed as a service with
the command [cygrunsrv --install postmaster --path /usr/bin/postmaster
--args "-D /usr/share/postgresql/data2 -i" --dep ipc-daemon2 --termsig
INT --user jeanseb --shutdown], I always got the same error :

The postmaster service could not be started.
The service did not report an error.

I checked if an old postmaster.pid was not deleted and I don't found
any. Any help will be really really appreciated.

Thanks

Melanie

#2Melanie Bergeron
mbergeron_pg@globeecom.com
In reply to: Melanie Bergeron (#1)
Re: [GENERAL] problem starting postmaster as a service

I checked postmaster.log and realize that I don't have the right to
access many directories so I used [chown postgres dir_name] for some
directories and all was ok now.

Thank you very very much for your help!!

Melanie

Chris Travers wrote:

Show quoted text

Melanie:

check /var/log/postgresql.log under cygwin. It may tell you where the
problem is.

FWIW, I had to do as follows: Move directory from /var/pgsql/ to
/var/postgresql/ (documentation is not in sync with Cygwin setup).

Chmod -R 777 /var/postgresql (eek!)
chown postgres /var/postgresql
then log in as postgres and correct the permissions.

Your milage may vary.

Best Wishes,
Chris Travers

.