Postgres logs w/ Logrotate - Mailing list pgsql-novice

From Renê Salomão
Subject Postgres logs w/ Logrotate
Date
Msg-id 20030328113545.516faffb.rene@ibiz.com.br
Whole thread Raw
In response to Re: Postgres logs  ("A.Bhuvaneswaran" <bhuvansql@myrealbox.com>)
Responses Re: Postgres logs w/ Logrotate
List pgsql-novice
Hi list,

 Is there any extra configuration to run postgresql 7.3.2 logs
with logrotate?
 I tried the following script at /etc/logrotate.d:

/var/log/postgresql/postgresql.log {
  daily
  rotate 5
  compress
  create
}

 the problem is that after it does its first rotation (create a
compressed copy of the log) and the new log file created, any new
message originated from postgresql is not saved in log file...

 I do start postgres with:

  pg_ctl start -o -i -l /var/log/postgresql/postgresql.log


 What am I doing wrong? Does Postgresql need to be restarted? How can I
do it?

Tkns
-----------------------------
Renê Salomão
Ibiz Tecnologia -- www.ibiz.com.br
(011) 5579-3178 - R. 211


pgsql-novice by date:

Previous
From: "A.Bhuvaneswaran"
Date:
Subject: Re: Postgres logs
Next
From: "Delao, Darryl W"
Date:
Subject: Postgres Syslog