Re: Starting PostgreSQL as an NT Service - Mailing list pgsql-hackers-win32

From Merlin Moncure
Subject Re: Starting PostgreSQL as an NT Service
Date
Msg-id 6EE64EF3AB31D5448D0007DD34EEB34101AEA2@Herge.rcsinc.local
Whole thread Raw
In response to Starting PostgreSQL as an NT Service  ("Hans Oesterholt Dijkema" <hans@strader.xs4all.nl>)
List pgsql-hackers-win32
Darko Prenosil wrote:
> I registerd the service using the bat file:
>
> d:
> cd pgsql\bin
> "pg_ctl.exe" unregister -N postgres
> "d:\pgsql\bin\pg_ctl.exe" register -N postgres -U postgres -P
> elephant5432 -D d:\pgsql\data"
> net start postgres
>
> I got :
> The description for Event ID ( 0 ) in Source ( PostgreSQL ) cannot be
> found.
> The local computer may not have the necessary registry information or
> message DLL files to display messages from a remote computer. The
> following
> information is part of the event: Unable to find exe.
>
> message written to event viewer.
>
> d:\pgsql\bin is in the path.
>
> Path to executable in the service manager is:
>
>     d:/pgsql/bin/pg_ctl.exe runservice -N "postgres" -D
"d:/pgsql/data"
>
> initdb finished OK, postgres is opened as unpriviledged user etc...

1. Is the your path on the system side or the user side (make sure it's
on the system side for services).
2. Try setting up PGDATA (in system env. variables) to avoid use of -D
option.
3. Try logging in as user postgres and invoking postmaster directly from
shell.
4. Double check NTFS permissions to 'local' folder (make sure postgres
has read/execute) and to data folder (make sure postgres has full
control)

Merlin

pgsql-hackers-win32 by date:

Previous
From: "Darko Prenosil"
Date:
Subject: Re: Starting PostgreSQL as an NT Service
Next
From: "Darko Prenosil"
Date:
Subject: Re: Starting PostgreSQL as an NT Service