squid/squid.logrotate

16 lines
351 B
Plaintext
Raw Normal View History

/var/log/squid/access.log /var/log/squid/store.log /var/log/squid/cache.log {
su squid squid
compress
dateext
maxage 365
rotate 99
size=+4096k
notifempty
missingok
create 640 squid root
sharedscripts
postrotate
/usr/bin/systemctl -q is-active squid.service && /usr/sbin/squid -k rotate
endscript
}