[Dovecot] Log rotation?

Timo Sirainen tss at iki.fi
Tue Dec 29 23:09:57 EET 2009


On Sun, 2009-12-27 at 23:02 -0800, Beto Moreno wrote:
>   postrotate
>     /bin/kill -USR1 `cat /var/run/dovecot/master.pid 2>/dev/null` 2>
> /dev/null || true
>   endscript
> }
> 
>   Well, my question is simple, Do we need to restart the service each
> time logrotation runs?

If you've configured log_path in Dovecot, you need to run the postrotate
kill command above. It doesn't restart Dovecot, it just makes Dovecot
reopen the log file.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20091229/06bb7ef2/attachment.bin 


More information about the dovecot mailing list