diff options
Diffstat (limited to 'extra/ipset/ipset.service')
-rw-r--r-- | extra/ipset/ipset.service | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/extra/ipset/ipset.service b/extra/ipset/ipset.service new file mode 100644 index 000000000..4318b056c --- /dev/null +++ b/extra/ipset/ipset.service @@ -0,0 +1,13 @@ +[Unit] +Description=Loading IP Sets +Before=iptables.service ip6tables.service + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/usr/bin/ipset -f /etc/ipset.conf restore +ExecReload=/usr/bin/ipset -f /etc/ipset.conf restore +ExecStop=/usr/bin/ipset destroy + +[Install] +WantedBy=multi-user.target |