From 7ecc05b4134d8dc3229114060149b443479cf25b Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 25 Aug 2024 14:18:18 -0400 Subject: [PATCH] Restart worker after becoming primary --- build-and-deploy.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build-and-deploy.sh b/build-and-deploy.sh index da7d502c..d9f09598 100755 --- a/build-and-deploy.sh +++ b/build-and-deploy.sh @@ -88,7 +88,8 @@ for HOST in ${HOSTS[@]}; do echo " done." if [[ -n ${PRIMARY_NODE} && ${PRIMARY_NODE} == ${HOST} ]]; then echo -n ">>> " - ssh $HOST pvc -q node primary + ssh $HOST pvc -q node primary --wait + ssh $HOST $SUDO systemctl restart pvcworkerd &>/dev/null fi done