From 1674155bab476569777a2c844035ed920c22bdce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Fri, 30 Jul 2021 09:36:24 +0200 Subject: [PATCH] Drop fail2ban restart from nftables unit --- templates/lib/systemd/system/nftables.service.j2 | 6 ------ 1 file changed, 6 deletions(-) diff --git a/templates/lib/systemd/system/nftables.service.j2 b/templates/lib/systemd/system/nftables.service.j2 index 3bc973d..e1986cf 100644 --- a/templates/lib/systemd/system/nftables.service.j2 +++ b/templates/lib/systemd/system/nftables.service.j2 @@ -12,15 +12,9 @@ StandardInput=null ProtectSystem=full ProtectHome=true {% endif %} -{% if nft__fail2ban_service %} -ExecStart=/usr/sbin/nft -f {{ nft_main_conf_path }} ; /bin/systemctl restart fail2ban.service -ExecReload=/usr/sbin/nft -f {{ nft_main_conf_path }} ; /bin/systemctl restart fail2ban.service -ExecStop=/bin/systemctl stop fail2ban.service ; /usr/sbin/nft flush ruleset -{% else %} ExecStart=/usr/sbin/nft -f {{ nft_main_conf_path }} ExecReload=/usr/sbin/nft -f {{ nft_main_conf_path }} ExecStop=/usr/sbin/nft flush ruleset -{% endif %} [Install] WantedBy=multi-user.target