Re: Win32: missing log file option for pg_ctl running as service

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "Steve McWilliams" <smcwilliams(at)EmprisaNetworks(dot)com>, <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Win32: missing log file option for pg_ctl running as service
Date: 2004-09-16 18:44:02
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCE475CCB@algol.sollentuna.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

>When running pg_ctl as a windows service (WinXP Pro), I don't
>see any way
>currently to configure a log file for it to use. I am using
>the following
>syntax to register pg_ctl as a service:
>
>pg_ctl register -N MyService -U myUser -P myPword -D myDataDir
>-w -o "-i"
>
>A "-l myLog" option passed in would get ignored, according to
>pg-ctl.c.
>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

Browse pgsql-bugs by date

  From Date Subject
Next Message PostgreSQL Bugs List 2004-09-16 20:14:41 BUG #1255: cannot connect remotely
Previous Message Steve McWilliams 2004-09-16 17:55:23 Win32: missing log file option for pg_ctl running as service