title: Configure logrotate in Chef
body: <p> I am adding logrotate cookbook from chef supermarket into an existing cookbook. I would like logrotate_app to generate a configuration that includes 'postrotate' script. <br/></p>
  
  <p>This is what i have in my recipe:</p>
  
  <pre><code>logrotate_app 'myapp' do
    path '/var/log/glusterfs/*.log'
    options ['missingok', 'compress', 'delaycompress', 'notifempty','postrotate']
    frequency 'daily'
    rotate 7 
    create '644 root adm' 
  end 
  </code></pre>
  
  <p>This is result of my current config:  </p>
  
  <pre><code>"/var/log/myapp/*.log" { 
    daily 
    create 644 root adm 
    rotate 7 
    missingok 
    compress 
    delaycompress 
    notifempty 
    postrotate 
  } 
  </code></pre>
  
  <p>I would like the final output to be like this: </p>
  
  <pre><code>/var/log/myapp/*.log { 
    sharedscripts 
    daily
    rotate 7 
    missingok 
    compress 
    delaycompress 
    notifempty 
    postrotate 
    /usr/bin/killall -HUP myapp &gt; /dev/null 2&gt;&amp;1 || true 
    /usr/bin/killall -HUP myapp &gt; /dev/null 2&gt;&amp;1 || true 
    endscript 
  } 
  </code></pre>
  
  <p>What would be the syntax to add below two lines in the recipe right after "postrotate" ? <br/></p>
  
  <pre><code>/usr/bin/killall -HUP MyApp &gt; /dev/null 2&gt;&amp;1 || true
  /usr/bin/killall -HUP MyApp &gt; /dev/null 2&gt;&amp;1 || true 
  </code></pre>