[Zope] Z2.log grows and Gzip question
Paolo Dina
paolo@php3.it
Tue, 08 Jul 2003 11:57:03 +0200
Dieter Maurer wrote:
> When you sent a Zope process a "SIGUSR2" signal, it closes and
> reopens all its log files.
>
> You can use this for log rotation. E.g.
>
> mv Z2.log Z2.log.save
> kill -SIGUSR2 $(cat var/Z2.pid) # this will close the old log file and open a new one
Great solution :)
Only one precisation: that method does not work on Zope 2.5.1, in
which case, the log is recreated, but Zope doesn't restart automatically.
All is ok with version 2.6.1.
> Now, you can compress "Z2.log.save" (or delete it).
>
And then, for log rotation probably i will use logrotate utility.
Thankyou Dieter.
> Dieter
>
Paolo