summaryrefslogtreecommitdiffstats
path: root/unit.logrotate
blob: 8fb00199d37f653706c95acfd6863cf354de5da9 (plain)
1
2
3
4
5
6
7
8
9
10
/var/log/unit/*.log {
    missingok
    nocreate
    notifempty
    postrotate
        if [ -f /var/run/unit/unit.pid ]; then
            /bin/kill -SIGUSR1 `cat /var/run/unit/unit.pid`
        fi
    endscript
}