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