1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/var/log/rspamd/rspamd.log { daily rotate 4 delaycompress compress notifempty missingok postrotate if test -d /run/systemd/system ; then systemctl kill -s USR1 --kill-who=main rspamd.service else test -r /run/rspamd.pid && kill -USR1 $(cat /run/rspamd.pid) &>/dev/null fi endscript }