title: Logrotate not rotating old files even after rotate is set to 0
body: <p>In my log rotate setup, for a specific log file the rotate has been set to 0. But once the size of the file is reached, the old file is rotated to <code>application.log.1</code> instead of being deleted.</p>
  
  <p>As per the documentation, the file should be deleted when rotate is set to 0. Why is this happening? I must also say that log rotate is configured to run every hour, but our log file reaches the size within 1 hour. So when logrotate runs every hour, it deletes the <code>old application.log.1</code>, rolls over the current <code>application.log</code> to <code>application.log.1</code> and creates a new <code>application.log</code> file.
  The config for the file looks like below:</p>
  
  <pre><code>/var/log/application.log
  {
      rotate 0
      weekly
      size 256M
      missingok
      notifempty
      copytruncate
      compress
      delaycompress
      sharedscripts
      postrotate
              reload rsyslog &gt;/dev/null 2&gt;&amp;1 || true
              /usr/sbin/scalyr-agent-2 stop
              /usr/sbin/scalyr-agent-2 start
      endscript
  }
  </code></pre>