rspamd/centos/sources/rspamd.logrotate.systemd
Anton Yuzhaninov 69a01b6d67 [Minor] Simplify logrotate postrotate script
Tested on CentOS 7.
2019-08-09 11:53:33 +01:00

12 lines
223 B
Plaintext

/var/log/rspamd/*log {
daily
rotate 10
missingok
notifempty
compress
sharedscripts
postrotate
systemctl --signal=USR1 --kill-who=main kill rspamd.service 2>/dev/null || :
endscript
}