title: AWS Opsworks: logrotate it runs automatically?
body: <p>I have configured my own logrotate(app logs) and for editing(nginx logs), all created in a recipes(chef). My question is: logrotate it runs automatically?</p>
  
  <p><em>I ask because I have configurations in which the logs can not EXCEED 5MB in size, and have logs with sizes of 100MB.</em></p>
  
  <p>show crontabs for root:</p>
  
  <pre><code>crontab -l
  no crontab for root
  </code></pre>
  
  <p><strong>/etc/logrotate.conf</strong></p>
  
  <pre><code>weekly
  su root syslog
  rotate 4
  create
  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
  }
  </code></pre>