From: Tom Hughes Date: Sat, 12 Oct 2019 14:31:20 +0000 (+0100) Subject: Fix fail2ban servie X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/70eaccc45b23013cf60449b024bb65bbd34d48ec?ds=sidebyside Fix fail2ban servie --- 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