Re: no more /var/log/postgres.log in latest debian package?

From: Louis-David Mitterrand <vindex(at)apartia(dot)org>
To: Jeff Davis <list-pgsql-general(at)dynworks(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: no more /var/log/postgres.log in latest debian package?
Date: 2002-02-08 10:43:49
Message-ID: 20020208104349.GA16310@apartia.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Feb 08, 2002 at 02:28:04AM -0800, Jeff Davis wrote:
> Edit /etc/postgresql/postgresql.conf and set syslog = 0
> if syslog = 2 then it goes to syslog (I believe that's the default for debian)
> if syslog = 1 then I think it goes to both syslog and stdout
> if syslog = 0 it doesn't go into syslog at all, only stdout
>
> Then make sure that pg_ctl is passed the "-l" option (that's a lowercase L)
> so that it sends the stdout to the correct file. I added:
> POSTGRES_LOG=/var/log/postgres.log
> to /usr/lib/postgresql/bin/postgresql-startup. It certainly seems as though
> there should be an easier way, doesn't it? Maybe there is a better way to
> pass it as an environment variable. Anyway, I guess that isn't too bad. It
> gets the output in the right file. I hope they make it cleaner for the 7.2
> packages.

Thanks a lot it works fine now!

--
THESEE: Mais l'ingrat toutefois ne m'est point échappé.
Une immortelle main de sa perte est chargée.
(Phèdre, J-B Racine, acte 4, scène 4)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Daniel Lundin 2002-02-08 11:43:45 Re: no more /var/log/postgres.log in latest debian package?
Previous Message Jeff Davis 2002-02-08 10:28:04 Re: no more /var/log/postgres.log in latest debian package?