We use a program (on Linux) called logrotate.
When you install it, you'll get a directory called /etc/logrotate.d/
in there you can put a config file for zope that can look like this::
/var/lib/zope-*/*/log/*.log {
        weekly
        missingok
        rotate 52
        compress
        delaycompress
        create 640 zope zope
        sharedscripts
        postrotate
        zopectl logrotate
        endscript
}


[EMAIL PROTECTED] wrote:
Hi;
Does anyone have a good log rotation script for rotating the Z2.log and event.log files?
TIA,
beno
_______________________________________________
Zope maillist  -  Zope@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 )


--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
_______________________________________________
Zope maillist  -  Zope@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 )

Reply via email to