title: pure-ftpd logs into rolled log file (logrotate.d)
body: <p>we have quite a large system that relies on FTP messaging. /var/log/pureftpd.log is under surveillance to respond to specific actions.</p>
  <p>Currently, I noticed an interesting problem where pure-ftpd is logging a new events to the old logfile for example (pureftpd.log.1).</p>
  <p>This happens in situations when FTP connection is open for a long time. When logrotate rotates log file by renaming old log. It seems that currently active FTP connections are still linked to the old file and all events are written there. This will get fixed after the FTP client reconnects.</p>
  <p>This behaviour makes pureftpd surveilance fail to register some events.</p>
  <p>How it can be fixed using logrotate.d or another means to ensure that all new events are always written into proper logfile without reconnecting ftp clients?</p>
  <p>pure-ftpd is running on Default settings and logrotate configuration is as follow:</p>
  <pre><code>/var/log/pureftpd.log {
      weekly
      notifempty
      missingok
  }
  </code></pre>
  <p>Thank you for any recommendation :)</p>