title: logrotate says permission denied when rotating log / re-creating log file
body: <p>I'm new to logrotate on linux machines... here's what I have set up in my app's logrotate.d file:</p>
  
  <pre><code>/var/log/myapp.log {
  daily
  missingok
  create 0660 root utmp
  rotate 1
  }
  </code></pre>
  
  <p>I set owner permissions on the myapp.log file for the account that runs the app in question, using chmod, directly from the bash shell. </p>
  
  <p>when the app first runs, everything is fine. It logs just fine and it's all good. But when the log gets rotated, it deletes the log file and then tries to recreate the log file and it gives a permission denied error:</p>
  
  <pre><code>/bin/bash: /var/log/myapp.log: Permission denied
  </code></pre>
  
  <p>I know I'm doing something wrong with either the logrotate config file or chmod or something... can someone point me in the right direction and help me fix the problem?</p>