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