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