2020-05-06 12:53:16 +00:00
|
|
|
/var/log/squid/*.log {
|
|
|
|
weekly
|
|
|
|
rotate 5
|
|
|
|
compress
|
2024-11-20 13:33:06 +00:00
|
|
|
delaycompress
|
2020-05-06 12:53:16 +00:00
|
|
|
notifempty
|
|
|
|
missingok
|
|
|
|
nocreate
|
|
|
|
sharedscripts
|
|
|
|
postrotate
|
|
|
|
# Asks squid to reopen its logs. (logfile_rotate 0 is set in squid.conf)
|
|
|
|
# errors redirected to make it silent if squid is not running
|
|
|
|
/usr/sbin/squid -k rotate 2>/dev/null
|
|
|
|
endscript
|
|
|
|
}
|