22 lines
538 B
Django/Jinja
22 lines
538 B
Django/Jinja
# {{ ansible_managed }}
|
|
[Unit]
|
|
Description={{ nft_service_name }}
|
|
Documentation=man:nft(8) http://wiki.nftables.org
|
|
Wants=network-pre.target
|
|
Before=network-pre.target shutdown.target
|
|
Conflicts=shutdown.target
|
|
DefaultDependencies=no
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
StandardInput=null
|
|
ProtectSystem=full
|
|
ProtectHome=true
|
|
ExecStart={{ nft__bin_location }} -f {{ nft_main_conf_path }}
|
|
ExecReload={{ nft__bin_location }} -f {{ nft_main_conf_path }}
|
|
ExecStop={{ nft__bin_location }} flush ruleset
|
|
|
|
[Install]
|
|
WantedBy=sysinit.target
|