summaryrefslogtreecommitdiff
path: root/net-misc/apt-cacher-ng/files/logrotate
blob: 330f2b6b66169b43d0976e61a5293fa6ba1e3559 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/var/log/apt-cacher-ng/*.log {
        size 10M
        missingok
        rotate 12
        compress
        delaycompress
        notifempty
        create
        postrotate
                if [ -s /var/run/apt-cacher-ng/apt-cacher-ng.pid ] ; then
                        kill -s USR1 "$(cat /var/run/apt-cacher-ng/apt-cacher-ng.pid)"
                fi
        endscript
}