From 70eaccc45b23013cf60449b024bb65bbd34d48ec Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 12 Oct 2019 15:31:20 +0100 Subject: [PATCH] Fix fail2ban servie --- cookbooks/fail2ban/recipes/default.rb | 3 +-- cookbooks/fail2ban/resources/filter.rb | 2 +- cookbooks/fail2ban/resources/jail.rb | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/cookbooks/fail2ban/recipes/default.rb b/cookbooks/fail2ban/recipes/default.rb index e8baa59ac..a002fe131 100644 --- a/cookbooks/fail2ban/recipes/default.rb +++ b/cookbooks/fail2ban/recipes/default.rb @@ -24,12 +24,11 @@ template "/etc/fail2ban/jail.d/00-default.conf" do owner "root" group "root" mode 0o644 - notifies :reload, "service[fail2ban]" + notifies :restart, "service[fail2ban]" end service "fail2ban" do action [:enable, :start] - supports :status => true, :reload => true, :restart => true end munin_plugin "fail2ban" diff --git a/cookbooks/fail2ban/resources/filter.rb b/cookbooks/fail2ban/resources/filter.rb index 6b8b440bf..d37ba4bb2 100644 --- a/cookbooks/fail2ban/resources/filter.rb +++ b/cookbooks/fail2ban/resources/filter.rb @@ -52,5 +52,5 @@ action :delete do end def after_created - notifies :reload, "service[fail2ban]" + notifies :restart, "service[fail2ban]" end diff --git a/cookbooks/fail2ban/resources/jail.rb b/cookbooks/fail2ban/resources/jail.rb index 1abedeecb..c07914d2c 100644 --- a/cookbooks/fail2ban/resources/jail.rb +++ b/cookbooks/fail2ban/resources/jail.rb @@ -51,5 +51,5 @@ action :delete do end def after_created - notifies :reload, "service[fail2ban]" + notifies :restart, "service[fail2ban]" end -- 2.43.2