squid/squid.logrotate
Henrik Nordström 42a149d0d4 Bug #583489: Adjust logrotate script to changes in logrotate package, and
forward port of #548903 - comm_open: socket failure: (97)
    Address..(ipv6) to F-13 & devel
2010-04-19 17:55:50 +00:00

17 lines
435 B
Plaintext

/var/log/squid/*.log {
weekly
rotate 5
compress
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
# Wait a little to allow Squid to catch up before the logs is compressed
sleep 1
endscript
}