Hello, How do you handle da Log Rotation like Apache & logrotate ?? I use to make a monthly rotation & compression. Thanks for tips & comment Cyrille
cyrille wrote:
Hello,
How do you handle da Log Rotation like Apache & logrotate ?? I use to make a monthly rotation & compression.
Thanks for tips & comment
Cyrille
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
If you use GNU/Linux Debian, simply put that (executable) script in /etc/cron.monhtly : #! /bin/bash echo "Rotating zope server logfile" cd /var/lib/zope/var/ savelog -g root -m 640 -u root -c 7 /var/lib/zope/var/Z2.log > /dev/null savelog -g root -m 640 -u root -c 7 /var/lib/zope/var/application.log > /dev/null /etc/init.d/zope restart The 'savelog' script is in debianutils package (a little bash script) If not, why don't you use debian ? :)
Sorry for answering in private, but I do not want to blur the zope list with Debian stuff. Feel free to quote me anywhere you want in public. On Fri, 25 Oct 2002, De ZORZI Frederic wrote:
If you use GNU/Linux Debian, simply put that (executable) script in /etc/cron.monhtly :
#! /bin/bash
echo "Rotating zope server logfile" cd /var/lib/zope/var/ By the way, this is a long standing bug in the Zope package: See bugs #57799, #60533, #71923 and #100158.
savelog -g root -m 640 -u root -c 7 /var/lib/zope/var/Z2.log > /dev/null This file is empty since one month for me which is really strange. Any hint whether this might be caused because of my log rotation procedure:
~> cat /etc/logrotate.d/zope /var/lib/zope/var/Z2.log { notifempty daily rotate 7 missingok compress } I've thought this would be the right thing to do but you did a different proposal ...
savelog -g root -m 640 -u root -c 7 /var/lib/zope/var/application.log > Hmmm, I do not have such a file on my installation? What is logged here?
/dev/null /etc/init.d/zope restart Is it really necessary to restart Zope? This seems really strange to me and I would think this is a real bug in Zope.
The 'savelog' script is in debianutils package (a little bash script)
If not, why don't you use debian ? :) Is there any other option to run a rock solid Linux??
Kind regards Andreas.
cyrille wrote:
Hello,
How do you handle da Log Rotation like Apache & logrotate ?? I use to make a monthly rotation & compression.
Thanks for tips & comment
Cyrille
hi, maybe you should have a look at Zope2.6. You can "reopen" your log-files with a kill -SIGUSR2 `cat /path/to/var/Z2.pid` after a log-rotation. cheers, maik -- Maik Jablonski __o www.zfl.uni-bielefeld.de _ \<_ Deutsche Zope User Group Bielefeld, Germany (_)/(_) www.dzug.org
Maik Jablonski a écrit:
cyrille wrote:
Hello,
How do you handle da Log Rotation like Apache & logrotate ?? I use to make a monthly rotation & compression.
Thanks for tips & comment
Cyrille
hi,
maybe you should have a look at Zope2.6. You can "reopen" your log-files with a
kill -SIGUSR2 `cat /path/to/var/Z2.pid`
Thanx a lot, it's what I'm looking for. I know logrotate, but I don't know well Zope. And I didn't want to kill Zope for a log rotation. Cyrille
after a log-rotation.
cheers, maik
participants (5)
-
Andreas Tille -
cyrille -
De ZORZI Frederic -
Magnus Heino -
Maik Jablonski