diff --git a/squid.logrotate b/squid.logrotate index be3f30f..598f544 100644 --- a/squid.logrotate +++ b/squid.logrotate @@ -1,31 +1,14 @@ -/var/log/squid/access.log { +/var/log/squid/access.log /var/log/squid/store.log /var/log/squid/cache.log { weekly rotate 5 - copytruncate compress notifempty missingok -} -/var/log/squid/cache.log { - weekly - rotate 5 - copytruncate - compress - notifempty - missingok -} - -/var/log/squid/store.log { - weekly - rotate 5 - copytruncate - compress - notifempty - missingok -# This script asks squid to rotate its logs on its own. -# Restarting squid is a long process and it is not worth -# doing it just to rotate logs + sharedscripts postrotate + # Asks squid to reopen its logs. (log_rotate 0 is set in squid.conf) /usr/sbin/squid -k rotate + # Wait a little to allow Squid to catch up before the logs is compressed + sleep 1 endscript } diff --git a/squid.spec b/squid.spec index ca2a8df..3270ba0 100644 --- a/squid.spec +++ b/squid.spec @@ -4,7 +4,7 @@ Name: squid Version: 3.0.STABLE7 -Release: 3%{?dist} +Release: 4%{?dist} Summary: The Squid proxy caching server Epoch: 7 License: GPLv2+ @@ -339,6 +339,9 @@ fi chgrp squid /var/cache/samba/winbindd_privileged >/dev/null 2>&1 || : %changelog +* Thu Oct 09 2008 Henrik Nordstrom - 7:3.0.STABLE7-4 +- change logrotate to move instead of copytruncate + * Wed Oct 08 2008 Jiri Skala - 7:3.0.STABLE7-3 - fix #465052 - FTBFS squid-3.0.STABLE7-1.fc10