Sha256: deede0cf958fbe22bb64a0a0b9efdffbdbe5c7e7c7884b9893ed95cfafd171c8

Contents?: true

Size: 1.05 KB

Versions: 12

Compression:

Stored size: 1.05 KB

Contents

<%
  common_props = <<-END
    daily
    rotate 30

    missingok
    notifempty

    compress
    delaycompress
  END
%>

<% if scripts.setup.has_script? 'passenger' %>
  /opt/nginx/logs/*.log {
<%= common_props %>
    sharedscripts

    postrotate
      test ! -f /var/run/nginx.pid || kill -USR1 'cat /var/run/nginx.pid'
    endscript
  }
<% end %>

<% if scripts.setup.has_script? 'webapp' %>

  <%= scripts.webapp.app_path %>log/<%= scripts.webapp.params.rails_env %>.log {
<%= common_props %>
    postrotate
      touch <%= scripts.webapp.app_path %>tmp/restart.txt
    endscript
  }

<% end %>

<% if scripts.setup.has_script?('resque') && scripts.webapp.params.has_key?(:resque_queues) %>
  <% scripts.webapp.params.resque_queues.each_pair do |resque_name, num_of_workers| %>
    <% 1.upto(num_of_workers) do |num| %>

  <%= scripts.webapp.app_path %>log/<%= "resque_worker_#{resque_name}_#{num}" %>.log {
<%= common_props %>
    postrotate
      /usr/sbin/monit restart <%= "resque_#{resque_name}_#{num}" %>
    endscript
  }

    <% end %>
  <% end %>
<% end %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
standup-0.6.9 scripts/logrotate/logrotate.conf.erb
standup-0.6.8 scripts/logrotate/logrotate.conf.erb
standup-0.6.7 scripts/logrotate/logrotate.conf.erb
standup-0.6.6 scripts/logrotate/logrotate.conf.erb
standup-0.6.5 scripts/logrotate/logrotate.conf.erb
standup-0.6.4 scripts/logrotate/logrotate.conf.erb
standup-0.6.3 scripts/logrotate/logrotate.conf.erb
standup-0.6.2 scripts/logrotate/logrotate.conf.erb
standup-0.6.1 scripts/logrotate/logrotate.conf.erb
standup-0.6.0 scripts/logrotate/logrotate.conf.erb
standup-0.5.14 scripts/logrotate/logrotate.conf.erb
standup-0.5.13 scripts/logrotate/logrotate.conf.erb