3 # source application-specific settings
4 [ -f /etc
/conf.d
/ipset
] && .
/etc
/conf.d
/ipset
6 # Set defaults if settings are missing
7 [ -z "$IPSET_CONF" ] && IPSET_CONF
=/etc
/ipset
/ipset.rules
14 if [ ! -f "$IPSET_CONF" ]; then
15 echo "Cannot load ipset rules: $IPSET_CONF is missing!" >&2
18 stat_busy
"Starting IP Sets"
19 if ck_daemon ipset
; then
20 /usr
/sbin
/ipset restore
< $IPSET_CONF
32 stat_busy
"Stopping IP Sets"
33 if ! ck_daemon ipset
; then
34 /usr
/sbin
/ipset destroy
50 stat_busy
"Saving IP Sets"
51 /usr
/sbin
/ipset save
> $IPSET_CONF
59 echo "usage: $0 {start|stop|restart|save}"