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

16 lines
347 B
SYSTEMD
Raw Normal View History

2020-04-15 01:42:03 +00:00
[Unit]
Description=Loading IP Sets
2020-04-15 14:26:22 +00:00
Before=network.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
2020-04-15 01:42:03 +00:00
[Install]
WantedBy=multi-user.target
RequiredBy=netfilter-persistent.service