title: Apache stops logging when rotating the logs
body: <p>I have Ubuntu 10.04.1 running LAMP.  I have logging setup for Apache, along with log rotation.</p>
  
  <p>When Apache starts, it logs everything (access, error, other_vhosts_access, and ssl_access) correctly.  However, when the logs are rotated, it stops logging.</p>
  
  <p>I have no idea where to go from here.  Help!</p>
  
  <pre><code># logrotate.conf (removing comments):
  daily
  rotate 4
  compress
  compresscmd /bin/bzip2
  compressext .bz2
  include /etc/logrotate.d
  /var/log/wtmp {
      missingok
      monthly
      create 0664 root utmp
      rotate 1
  }
  /var/log/btmp {
      missingok
      monthly
      create 0660 root utmp
      rotate 1
  }
  
  ##logrotate.d/apache2 (removing comments):
  /var/log/apache2/*.log {
  dateext
  create 640 root adm
  sharedscripts
  daily
  compress
  compresscmd /bin/bzip2
  compressoptions -k
  postrotate
      echo "-- `date` --" &gt;&gt; move_log.txt
      mv &lt;path&gt;/access.log-*.bz2 &lt;path&gt;
      mv &lt;path&gt;/ssl_access.log-*.bz2 &lt;path&gt;
  endscript
  }
  </code></pre>