diff options
Diffstat (limited to 'network/squid/squid.logrotate')
-rw-r--r-- | network/squid/squid.logrotate | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/network/squid/squid.logrotate b/network/squid/squid.logrotate new file mode 100644 index 0000000000..87b66e6df6 --- /dev/null +++ b/network/squid/squid.logrotate @@ -0,0 +1,15 @@ +/var/log/squid/*.log { + weekly + rotate 5 + copytruncate + compress + notifempty + missingok + +# This script asks squid to rotate its logs on its own. +# Restarting squid is a long process and it is not worth +# doing it just to rotate logs + postrotate + /usr/sbin/squid -k rotate + endscript +} |