[Dovecot] rotate logs ?
Frank Bonnet
f.bonnet at esiee.fr
Tue Jan 18 11:59:42 EET 2011
On 01/18/2011 10:53 AM, Timo Sirainen wrote:
> On 18.1.2011, at 11.41, Nick Lunt wrote:
>
>> How about putting the something similar to the following in
>> /etc/logrotate.conf (on redhat/centos)
>>
>> /var/log/dovecot.log {
>> weekly
>> minsize 1M
>> create 0664 root postfix
>> rotate 4
>> }
> Be sure to send a SIGUSR1 signal to dovecot process too so that it reopens the logs. (With v2.0 you can use doveadm log reopen.)
>
Would this be OK in logrotate.conf ?
kill -HUP `cat /var/run/dovecot/master.pid`
More information about the dovecot
mailing list