From 791be26c797a349df14b9889f50018f8f75b13b4 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 6 Jul 2018 08:34:16 +0100 Subject: [PATCH] Remove code to restart logstash-forwarder on log rotation --- cookbooks/web/templates/default/logrotate.web.erb | 3 --- 1 file changed, 3 deletions(-) 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 -- 2.39.5