summaryrefslogtreecommitdiff
path: root/community/ipset/ipset.service
diff options
context:
space:
mode:
Diffstat (limited to 'community/ipset/ipset.service')
-rw-r--r--community/ipset/ipset.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/community/ipset/ipset.service b/community/ipset/ipset.service
new file mode 100644
index 000000000..39183c7d7
--- /dev/null
+++ b/community/ipset/ipset.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Loading IP Sets
+Before=iptables.service
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/usr/bin/ipset -f /etc/ipset.conf restore
+ExecStop=/usr/bin/ipset destroy
+
+[Install]
+WantedBy=multi-user.target