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 085b761..ab906c6 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") -%>
-    /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") -%>