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