ansible-playbooks/ubuntu/roles/ipset-deploy/files/ipset.service
2020-04-15 10:26:29 -04:00

16 lines
347 B
Desktop File

[Unit]
Description=Loading IP Sets
Before=network.target
Before=netfilter-persistent.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/ipset -! -f /etc/ipset.conf restore
ExecReload=/sbin/ipset -! -f /etc/ipset.conf restore
ExecStop=/sbin/ipset flush
[Install]
WantedBy=multi-user.target
RequiredBy=netfilter-persistent.service