[Dovecot] Maillog rotates, but dovecot still writes logs into old logfile?
Troy Engel
tengel at fluid.com
Thu Apr 19 20:41:54 EEST 2007
Mart Pirita wrote:
>
> The only solution I did found, is adding into /etc/logrotate.d/syslog
> command to restart dovecot:
>
> /etc/rc.d/init.d/dovecot restart >/dev/null
> 2>&1
As per the wiki, dovecot listens to SIGUSR1 to reopen a log. You want to
simply use a command like:
/bin/kill -USR1 `cat /var/run/dovecot/master.pid 2>/dev/null` 2>
/dev/null || true
See here:
http://wiki.dovecot.org/Logging#head-8886f6e09e2f691a4c45448f18f914c124dead50
-te
--
Troy Engel | Systems Engineer
Fluid, Inc | http://www.fluid.com
More information about the dovecot
mailing list