title: Does logrotate copy the current file or rename the current file
body: <p>I read about a few articles on line, but I still do not get how logrotate works.</p>
  
  <p>My config file is as follows:</p>
  
  <pre><code>/var/log/usage.log  {
    rotate 10
    daily
    size 1G
  
    missingok
    notifempty
    sharedscripts
    postrotate
      /usr/local/bin/cond_pkill.sh -s HUP /var/run/production.pid java
    endscript
  }
  </code></pre>
  
  <p>I notice that my main service performance dip a little bit whenever logrotate starts.
  I am trying to find out the reason. </p>
  
  <p>I can think of two things right now. </p>
  
  <p>One is logrotate actually copies the files around instead of renaming them. Is this true? I understand that logrotate config has an option called copy. If I do not set that option, will logrotate still copy the files? My files are large, > 2G each.</p>
  
  <p>Another thing is HUP signal causes my service performance to dip. I will follow up on that.</p>
  
  <p>Thanks,
  Jerry</p>