X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/f1dec95b684d66a563de20fae4bf4b6fce7e93d5..ecb5d5beac1e41d30e47daa6a034c59b33027d12:/cookbooks/web/templates/default/logrotate.web.erb diff --git a/cookbooks/web/templates/default/logrotate.web.erb b/cookbooks/web/templates/default/logrotate.web.erb index 9928841fe..ab906c688 100644 --- a/cookbooks/web/templates/default/logrotate.web.erb +++ b/cookbooks/web/templates/default/logrotate.web.erb @@ -11,7 +11,10 @@ sharedscripts postrotate <% if File.directory?("#{node[:web][:base_directory]}/rails") -%> - /bin/touch <%= node[:web][:base_directory] %>/rails/tmp/restart.txt + /usr/bin/passenger-config restart-app <%= node[:web][:base_directory] %>/rails > /dev/null +<% if node[:recipes].include?("logstash::forwarder") -%> + /usr/bin/service logstash-forwarder restart > /dev/null +<% end -%> <% end -%> <% if File.directory?("#{node[:web][:base_directory]}/gpx-import") -%> /usr/bin/service gpx-import rotated