From: Tom Hughes Date: Fri, 6 Jul 2018 07:34:16 +0000 (+0100) Subject: Remove code to restart logstash-forwarder on log rotation X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/791be26c797a349df14b9889f50018f8f75b13b4?ds=inline Remove code to restart logstash-forwarder on log rotation --- diff --git a/cookbooks/web/templates/default/logrotate.web.erb b/cookbooks/web/templates/default/logrotate.web.erb index b0028af87..7f9e1de77 100644 --- a/cookbooks/web/templates/default/logrotate.web.erb +++ b/cookbooks/web/templates/default/logrotate.web.erb @@ -12,9 +12,6 @@ postrotate <% if File.directory?("#{node[:web][:base_directory]}/rails") -%> PASSENGER_INSTANCE_REGISTRY_DIR=<%= node[:passenger][:instance_registry_dir] %> /usr/bin/passenger-config restart-app --ignore-app-not-running <%= node[:web][:base_directory] %>/rails > /dev/null -<% if node[:recipes].include?("logstash::forwarder") -%> - /etc/init.d/logstash-forwarder restart > /dev/null -<% end -%> <% end -%> <% if File.directory?("#{node[:web][:base_directory]}/gpx-import") -%> /bin/systemctl try-reload-or-restart gpx-import