From 5001448a81f6f0ff82d06ddff79a97bb69e6d249 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 Rebase after Gentoo related commits --- 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 87c51f5..5487cea 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={{ nft__bin_location }} -f {{ nft_main_conf_path }} ; /bin/systemctl restart fail2ban.service -ExecReload={{ nft__bin_location }} -f {{ nft_main_conf_path }} ; /bin/systemctl restart fail2ban.service -ExecStop=/bin/systemctl stop fail2ban.service ; {{ nft__bin_location }} flush ruleset -{% else %} ExecStart={{ nft__bin_location }} -f {{ nft_main_conf_path }} ExecReload={{ nft__bin_location }} -f {{ nft_main_conf_path }} ExecStop={{ nft__bin_location }} flush ruleset -{% endif %} [Install] WantedBy=multi-user.target