From 96170ed36bbce5a18d67fed0beeb23594809ac62 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 1 Jun 2016 22:29:14 +0100 Subject: [PATCH] Reload logstash on config change instead of restarting --- cookbooks/logstash/recipes/default.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.43.2