Re: [Zope] Re: Zope & logrotate
by Paul Winkler other posts by this author
Apr 22 2004 6:12PM messages near this date
Re: [Zope] Re: Zope & logrotate
|
Re: [Zope] Re: Zope & logrotate
On Thu, Apr 22, 2004 at 01:16:10PM -0400, Jake wrote:
> Bobb said:
> >> > Sure you can, I do it every night with a cron job.
> >> >
> >> > The only thing to be careful of is that you want a postrotate
> >> > script that tells zope to reopen the log file.
> >> > See doc/SIGNALS.txt to learn how to tell zope that,
> >> > and the logrotate man page to learn how about postrotate.
>
> I read this...
> http://cvs.zope.org/Zope/doc/SIGNALS.txt?rev=1.3.44.1&content-type=text/vnd.viewcvs-markup
>
> But could you send an example, currently I have:
>
> postrotate
> /usr/bin/kill -USR2 `cat /usr/local/zope/var/Z2.pid`
> endscript
>
> Which I think is dead wrong.
I don't think that's a valid option to kill, at least not on linux.
This is the logrotate conf file that I have:
### begin #######################
compress
/www/logs/z_access_log/current /www/logs/z_big_m_log/current /www/logs/z_event_log/current {
rotate 20
size=100k
# run the postrotate command only once, not for each log...
sharedscripts
postrotate
# see doc/SIGNALS.txt in the zope source distribution
/bin/kill -s SIGUSR2 `cat /zope/InstanceHome/var/Z2.pid`
endscript
}
##### end ###################
--
Paul Winkler
http://www.slinkp.com
_______________________________________________
Zope maillist - Zope@[...].org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )
Thread:
John Poltorak
Bobb
Jake
Paul Winkler
Jake
Dieter Maurer
John Poltorak
Paolo Dina
Paul Winkler
Nate Aune
|