Re: Starting PostgreSQL as an NT Service

From: "Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com>
To: "Darko Prenosil" <Darko(dot)Prenosil(at)finteh(dot)hr>
Cc: <pgsql-hackers-win32(at)postgresql(dot)org>
Subject: Re: Starting PostgreSQL as an NT Service
Date: 2004-06-30 21:08:25
Message-ID: 6EE64EF3AB31D5448D0007DD34EEB34101AEA2@Herge.rcsinc.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Darko Prenosil 2004-06-30 21:46:14 Re: Starting PostgreSQL as an NT Service
Previous Message Darko Prenosil 2004-06-30 21:00:55 Re: Starting PostgreSQL as an NT Service