Drop fail2ban restart from nftables unit
Rebase after Gentoo related commits
This commit is contained in:
parent
28cf15ee42
commit
5001448a81
|
@ -12,15 +12,9 @@ StandardInput=null
|
||||||
ProtectSystem=full
|
ProtectSystem=full
|
||||||
ProtectHome=true
|
ProtectHome=true
|
||||||
{% endif %}
|
{% 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 }}
|
ExecStart={{ nft__bin_location }} -f {{ nft_main_conf_path }}
|
||||||
ExecReload={{ nft__bin_location }} -f {{ nft_main_conf_path }}
|
ExecReload={{ nft__bin_location }} -f {{ nft_main_conf_path }}
|
||||||
ExecStop={{ nft__bin_location }} flush ruleset
|
ExecStop={{ nft__bin_location }} flush ruleset
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in New Issue