Wait between service restarts

This commit is contained in:
Joshua Boniface 2023-11-29 15:47:13 -05:00
parent 41f4e4fb2f
commit 6a68cf665b
1 changed files with 3 additions and 0 deletions

View File

@ -64,8 +64,11 @@ for HOST in ${HOSTS[@]}; do
echo " done."
echo -n "Restarting PVC daemons..."
ssh $HOST $SUDO systemctl restart pvcapid &>/dev/null
sleep 5
ssh $HOST $SUDO systemctl restart pvcworkerd &>/dev/null
sleep 5
ssh $HOST $SUDO systemctl restart pvchealthd &>/dev/null
sleep 5
ssh $HOST $SUDO systemctl restart pvcnoded &>/dev/null
echo " done."
echo -n "Waiting for node daemon to be running..."