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