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