title: How does "tail -f" and logrotate work?
body: <p>When I run tail -f for a log file, logrotate rotate it but tail -f did not stop. It continue show logs in new file. After that I try manually;</p>
  
  <pre><code>mv my.log my.log.2
  touch my.log
  echo "test text" &gt;&gt; my.log
  echo "test text" &gt;&gt; my.log
  </code></pre>
  
  <p>It does not works. How does logrotate rotate logs? Does it copy all lines to new file?</p>
  
  <p>Note: I am working on centos 5.</p>