From 6a68cf665bdd3f3e986e7fa171a40d1a6507df9d Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Wed, 29 Nov 2023 15:47:13 -0500 Subject: [PATCH] Wait between service restarts --- build-and-deploy.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build-and-deploy.sh b/build-and-deploy.sh index 487ce294..e78ad4ea 100755 --- a/build-and-deploy.sh +++ b/build-and-deploy.sh @@ -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..."