summaryrefslogtreecommitdiffhomepage
path: root/pkg/deb/debian/unit.logrotate
blob: 416947cac24be9a0c8438d04bae3d65d40c31a97 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/var/log/unit.log {
    daily
    missingok
    rotate 7
    compress
    delaycompress
    nocreate
    notifempty
    su root root
    postrotate
        if [ -f /var/run/unit.pid ]; then
            /bin/kill -SIGUSR1 `cat /var/run/unit.pid`
        fi
    endscript
}