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

15 lines
325 B
Desktop File

[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 destroy
[Install]
WantedBy=multi-user.target