From: Tom Hughes Date: Wed, 1 Jun 2016 21:29:14 +0000 (+0100) Subject: Reload logstash on config change instead of restarting X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/96170ed36bbce5a18d67fed0beeb23594809ac62?ds=sidebyside Reload logstash on config change instead of restarting --- diff --git a/cookbooks/logstash/recipes/default.rb b/cookbooks/logstash/recipes/default.rb index 73198d593..86711fb31 100644 --- a/cookbooks/logstash/recipes/default.rb +++ b/cookbooks/logstash/recipes/default.rb @@ -45,7 +45,7 @@ template "/etc/logstash/conf.d/chef.conf" do user "root" group "root" mode 0644 - notifies :restart, "service[logstash]" + notifies :reload, "service[logstash]" end file "/etc/logrotate.d/logstash" do @@ -54,7 +54,7 @@ end service "logstash" do action [:enable, :start] - supports :status => true, :restart => true + supports :status => true, :restart => true, :reload => true end template "/etc/cron.daily/expire-logstash" do