3 # source application-specific settings
4 [ -f /etc
/conf.d
/ipvsadm
] && .
/etc
/conf.d
/ipvsadm
11 if [ ! -f $IPVSADM_CONF ]; then
12 echo "Cannot load ipvsadm rules: $IPVSADM_CONF is missing!" >&2
15 status
"Clearing current IPVS table" /sbin
/ipvsadm
-C
16 stat_busy
"Applying IPVS configuration"
17 /sbin
/ipvsadm-restore
<$IPVSADM_CONF
26 status
"Clearing current IPVS table" /sbin
/ipvsadm
-C
30 # no need to stop, start will clear the table for us
34 stat_busy
"Saving IPVS configuration"
35 /sbin
/ipvsadm-save
-n >$IPVSADM_CONF 2>/dev
/null
43 echo "usage: $0 {start|stop|restart|save}"