84cce1
/var/log/squid/*.log {
84cce1
    weekly
84cce1
    rotate 5
84cce1
    compress
84cce1
    delaycompress
84cce1
    notifempty
84cce1
    missingok
84cce1
    nocreate
84cce1
    sharedscripts
84cce1
    postrotate
84cce1
      # Asks squid to reopen its logs. (logfile_rotate 0 is set in squid.conf)
84cce1
      # errors redirected to make it silent if squid is not running
84cce1
      /usr/sbin/squid -k rotate 2>/dev/null
84cce1
    endscript
84cce1
}