title: Rotate file according to size
body: <p>I have the following setup: removed the line contaning <code>/var/log/maillog</code> from <code>/etc/logrotate.d/syslog</code> file, and added the following in <code>/etc/logrotate.conf</code> file:</p>
  
  <pre><code>...
  
  # system-specific logs may be also be configured here.
  
  /var/log/maillog
  {
      missingok
      notifempty
      nocompress
      size=50k
      postrotate
          touch /var/log/maillog
      endscript
  }
  </code></pre>
  
  <p>Why does the <code>touch /var/log/maillog</code> line never get executed when the file size reaches 50k?</p>