blob: 5e1fd95594165c7dc73e327eb9f6d2ba0bb1cdf3 [file] [log] [blame] [edit]
[Unit]
Description=ipset service
Before=network-pre.target iptables-restore.service ip6tables-restore.service
Wants=network-pre.target
ConditionFileNotEmpty=/etc/sysconfig/ipset-rules-save
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/sbin/ipset -exist -file /etc/sysconfig/ipset-rules-save restore
ExecReload=/usr/sbin/ipset -exist -file /etc/sysconfig/ipset-rules-save restore
[Install]
WantedBy=basic.target