Re: Log rotation?

From: "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au>
To: "Peter Eisentraut" <peter_e(at)gmx(dot)net>
Cc: "PostgreSQL Development" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Log rotation?
Date: 2001-09-07 02:06:19
Message-ID: ECEHIKNFIMMECLEBJFIGOENCCBAA.chriskl@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Yeah, I use FreeBSD's wonderful newsyslog utility, and I do my logging like
this:

su -l pgsql -c '[ -d ${PGDATA} ] && exec /usr/local/bin/pg_ctl
start -s -w -o "-i" -l /var/log/pgsql.log'

And my /etc/newsyslog.conf entry:

/var/log/pgsql.log pgsql:pgsql 600 3 4096 * Z

Chris

> -----Original Message-----
> From: pgsql-hackers-owner(at)postgresql(dot)org
> [mailto:pgsql-hackers-owner(at)postgresql(dot)org]On Behalf Of Peter Eisentraut
> Sent: Thursday, 6 September 2001 6:04 PM
> To: Christopher Kings-Lynne
> Cc: PostgreSQL Development
> Subject: Re: [HACKERS] Log rotation?
>
>
> Christopher Kings-Lynne writes:
>
> > What's the problem with using newsyslog or logrotate at the
> moment? (ie.
> > use the system log rotator)
>
> The postmaster will never close the output file, so you can rotate all you
> want, the original file will never be abandoned.
>
> --
> Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://www.postgresql.org/search.mpl
>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Christopher Kings-Lynne 2001-09-07 02:16:56 Re: FTI contrib
Previous Message Mark Pritchard 2001-09-07 02:05:16 Re: [Pgreplication-general] GreatBridge ceases operations