Package: dovecot-common
Version: 1:1.0.15-2.3
Severity: whishlist

A script to rotate the logs was not installed with the package.

After rotating logs I issue a SIGUSR1 to re-open logfile.

May have something to do with #532918

SIGHUP should re-exec master and re-read config too.

SIGUSR1 re-opens log according to URL below.

In my /etc/logrotate.d/dovecot-local I have put: - 
# http://wiki.dovecot.org/Logging - dovecot SIGUSR1: Re-opens the log files.
/var/log/dovecot/logfile /var/log/dovecot/messages {
  daily
  missingok
  rotate 90
  compress
  delaycompress
  notifempty
  create 640 root adm
  sharedscripts
  postrotate
    if [ -r /var/run/dovecot/master.pid ]; then \
      kill -s USR1 $(cat /var/run/dovecot/master.pid); \
    fi
  endscript
}



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to