03b9a7
/var/log/squid/*.log {
03b9a7
    weekly
03b9a7
    rotate 5
03b9a7
    compress
03b9a7
    notifempty
03b9a7
    missingok
03b9a7
    nocreate
03b9a7
    sharedscripts
03b9a7
    postrotate
03b9a7
      # Asks squid to reopen its logs. (logfile_rotate 0 is set in squid.conf)
03b9a7
      # errors redirected to make it silent if squid is not running
03b9a7
      /usr/sbin/squid -k rotate 2>/dev/null
03b9a7
      # Wait a little to allow Squid to catch up before the logs is compressed
03b9a7
      sleep 1
03b9a7
    endscript
03b9a7
}