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