summaryrefslogtreecommitdiffstats
path: root/centos/sources/rspamd.logrotate.systemd
blob: f6536d058d7e34dd19b2ea611acfd9254e6c8707 (plain)
1
2
3
4
5
6
7
8
9
10
11
/var/log/rspamd/*log {
    daily
    rotate 10
    missingok
    notifempty
    compress
    sharedscripts
    postrotate
        export `systemctl -p MainPID show rspamd.service`; if [ -n "$MainPID" ]; then kill -USR1 $MainPID; fi
    endscript
}