Postgres logs w/ Logrotate

Поиск
Список
Период
Сортировка
От Renê Salomão
Тема Postgres logs w/ Logrotate
Дата
Msg-id 20030328113545.516faffb.rene@ibiz.com.br
обсуждение исходный текст
Ответ на Re: Postgres logs  ("A.Bhuvaneswaran" <bhuvansql@myrealbox.com>)
Ответы Re: Postgres logs w/ Logrotate  (Oliver Elphick <olly@lfix.co.uk>)
Список 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 по дате отправления:

Предыдущее
От: "A.Bhuvaneswaran"
Дата:
Сообщение: Re: Postgres logs
Следующее
От: "Delao, Darryl W"
Дата:
Сообщение: Postgres Syslog