ansible-playbooks/ubuntu/roles/ipset-deploy/files/ipset.service

17 lines
375 B
SYSTEMD
Raw Normal View History

2020-04-15 01:42:03 +00:00
[Unit]
Description=Loading IP Sets
Before=netowrk.target
Before=netfilter-persistent.service
2020-04-15 01:42:03 +00:00
[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
ExectStopPost=/sbin/ipset destroy
2020-04-15 01:42:03 +00:00
[Install]
WantedBy=multi-user.target
RequiredBy=netfilter-persistent.service