Re: Win32: missing log file option for pg_ctl running as service - Mailing list pgsql-bugs

From Magnus Hagander
Subject Re: Win32: missing log file option for pg_ctl running as service
Date
Msg-id 6BCB9D8A16AC4241919521715F4D8BCE475CCB@algol.sollentuna.se
Whole thread Raw
In response to Win32: missing log file option for pg_ctl running as service  ("Steve McWilliams" <smcwilliams@EmprisaNetworks.com>)
List pgsql-bugs
>When running pg_ctl as a windows service (WinXP Pro), I don't=20
>see any way
>currently to configure a log file for it to use.  I am using=20
>the following
>syntax to register pg_ctl as a service:
>
>pg_ctl register -N MyService -U myUser -P myPword -D myDataDir=20
>-w -o "-i"
>
>A "-l myLog" option passed in would get ignored, according to=20
>pg-ctl.c.=20
>Is there some other way that we should be configuring a log file when
>running pg_ctl as a service on windows?

Yes, see the redirect_stderr parameter in postgresql.conf.
It should be enabled by default in the pginstaller installation.

//Magnus

pgsql-bugs by date:

Previous
From: "Steve McWilliams"
Date:
Subject: Win32: missing log file option for pg_ctl running as service
Next
From: "PostgreSQL Bugs List"
Date:
Subject: BUG #1255: cannot connect remotely