Ignore messages restarting logstash-forwarder
authorTom Hughes <tom@compton.nu>
Mon, 7 Sep 2015 08:13:11 +0000 (09:13 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 7 Sep 2015 08:13:34 +0000 (09:13 +0100)
cookbooks/web/templates/default/logrotate.web.erb

index 085b7616c1ece0502e6d82b2963bcf3f772dea4c..ab906c68878e350be5c5622d5434007477e3a03d 100644 (file)
@@ -13,7 +13,7 @@
 <% if File.directory?("#{node[:web][:base_directory]}/rails") -%>
     /usr/bin/passenger-config restart-app <%= node[:web][:base_directory] %>/rails > /dev/null
 <% if node[:recipes].include?("logstash::forwarder") -%>
 <% if File.directory?("#{node[:web][:base_directory]}/rails") -%>
     /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
+    /usr/bin/service logstash-forwarder restart > /dev/null
 <% end -%>
 <% end -%>
 <% if File.directory?("#{node[:web][:base_directory]}/gpx-import") -%>
 <% end -%>
 <% end -%>
 <% if File.directory?("#{node[:web][:base_directory]}/gpx-import") -%>