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