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

15 lines
325 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
2020-04-15 02:15:22 +00:00
ExecStop=/sbin/ipset destroy
2020-04-15 01:42:03 +00:00
[Install]
WantedBy=multi-user.target