squid/squid.logrotate
2008-10-09 11:47:06 +00:00

15 lines
393 B
Plaintext

/var/log/squid/access.log /var/log/squid/store.log /var/log/squid/cache.log {
weekly
rotate 5
compress
notifempty
missingok
sharedscripts
postrotate
# Asks squid to reopen its logs. (log_rotate 0 is set in squid.conf)
/usr/sbin/squid -k rotate
# Wait a little to allow Squid to catch up before the logs is compressed
sleep 1
endscript
}