aboutsummaryrefslogtreecommitdiff
path: root/network/squid/squid.logrotate
blob: 87b66e6df615da354d9ace5f931d8c7a997f965e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
}