f5104d
[Unit]
f5104d
Description=IP sets for iptables
f5104d
Before=iptables.service
f5104d
Before=ip6tables.service
f5104d
f5104d
[Service]
f5104d
Type=oneshot
f5104d
RemainAfterExit=yes
f5104d
ExecStart=/usr/libexec/ipset/ipset.start-stop start
f5104d
ExecStop=/usr/libexec/ipset/ipset.start-stop stop
f5104d
ExecReload=/usr/libexec/ipset/ipset.start-stop reload
f5104d
# Save current ipset entries on stop.
f5104d
#   Value: yes|no,  default: no
f5104d
# Saves all ipsets to /etc/sysconfig/ipset if ipset gets stopped
f5104d
Environment=IPSET_SAVE_ON_STOP=no
f5104d
EnvironmentFile=-/etc/sysconfig/ipset-config
f5104d
f5104d
[Install]
f5104d
WantedBy=basic.target