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

15 lines
323 B
SYSTEMD
Raw Normal View History

2020-04-15 01:42:03 +00:00
[Unit]
Description=Loading IP Sets
Before=network-pre.target netfilter-persistent.service
Wants=network-pre.target
[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