smeserver-dovecot/root/etc/logrotate.d/dovecot

19 lines
439 B
Plaintext
Raw Permalink Normal View History

/var/log/dovecot/dovecot.log {
weekly
rotate 4
missingok
notifempty
compress
delaycompress
sharedscripts
su root root
create 600 root root
postrotate
#/usr/bin/systemctl reload-or-try-restart dovecot
# kill -s USR2 `cat /var/run/dovecot/master.pid`
doveadm log reopen
# in case of issues with SELinux
# kill -s 0 `cat /var/run/dovecot/master.pid` || kill -s USR1 `cat /var/run/dovecot/master.pid`
endscript
}