Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-bugs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group