diff options
author | David Somero <dsomero@hotmail.com> | 2010-05-13 00:38:21 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:38:21 +0200 |
commit | 7f829d9a90c85e05bf6d93a9fbc4ace0fe99297d (patch) | |
tree | 5d4037b2af781951c3911c96074020abcbafd1a0 /network/squid/squid.logrotate | |
parent | 0b3f8d9c4c0a336b1834b7cbd22af0b350fe5e59 (diff) |
network/squid: Updated for version 3.0.STABLE21
Diffstat (limited to 'network/squid/squid.logrotate')
-rw-r--r-- | network/squid/squid.logrotate | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/network/squid/squid.logrotate b/network/squid/squid.logrotate index e6d8309b7b09d..cad527de36243 100644 --- a/network/squid/squid.logrotate +++ b/network/squid/squid.logrotate @@ -1,13 +1,18 @@ +# We set logfile_rotate=0 in squid.conf, which disables filename rotation +# by squid itself (as we'll let logrotate handle the filename rotation), but +# squid still closes and then reopens the logfile. The goal of this file is +# to rotate the logfile (rename it from squid.log to squid.log.1) without +# compressing it immediately, as squid will still be writing to the renamed +# log file. Then the postrotate script will tell squid to close and then +# reopen squid.log, effectively using the new logfile. The old logfile +# (squid.log.1) will be compressed by logrotate's next invocation. /var/log/squid/*.log { weekly rotate 5 - copytruncate compress + delaycompress 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 postrotate /usr/sbin/squid -k rotate endscript |