diff --git a/share/hooks/raft/vip.sh b/share/hooks/raft/vip.sh index ccd365fd08..18294e13bf 100755 --- a/share/hooks/raft/vip.sh +++ b/share/hooks/raft/vip.sh @@ -23,10 +23,12 @@ leader) sudo arping -c 1 -A -I $INTERFACE ${IP%%/*} sleep 1 done + oneflow-server start ;; follower) sudo ip address del $IP dev $INTERFACE + oneflow-server stop ;; *)