[Zope] Re: Zope & logrotate

Jake jake at zopezone.com
Thu Apr 22 13:16:10 EDT 2004


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.

Jake

-- 
http://www.ZopeZone.com




More information about the Zope mailing list