Re: rotating log files

From: Warren Vanichuk <pyber(at)street-light(dot)com>
To: Jelle Ouwerkerk <jelle(at)openface(dot)ca>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: rotating log files
Date: 2001-04-27 15:50:29
Message-ID: Pine.LNX.4.21.0104270848110.8036-100000@urd.street-light.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> # start
>
> /var/log/postgresql.log {
> compress
> rotate 10
> create 0664 postgres postgres
> size=10000k
> weekly
> sharedscripts
> postrotate
> /etc/rc.d/init.d/postgresql restart
> endscript
> }

Alternatively, instead of restarting postgres, the "copytruncate" option can
be used to truncate the log file in place, allowing postgres to continue
writting to the file without needing to restart.

Sincerely, Warren

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dave Cramer 2001-04-27 15:56:38 Help, I dropped a system datatype, and now I'm ....
Previous Message Michelle Murrain 2001-04-27 15:42:26 pg_encoding