From 1bd6ca0deb53707fa0745169ac3d561dc8bf0112 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 13 Apr 2023 18:44:41 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 212cbdac..6401bc26 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -451,6 +451,8 @@ STATUS(){ else timeout=`date --date='2 minutes' +%s` fi + warn_timeout=`date --date='1 minutes' +%s` + checked=false until [ "${checked}" = "" ]; do @@ -459,9 +461,11 @@ STATUS(){ else ssh -q root@${nip} [[ -f ${REPL_CHECKS[${rcheck}]}/test.repl ]] && checked="`${PH_CMD} \"ssh root@${nip} \"cat ${REPL_CHECKS[${rcheck}]}/test.repl\" | diff - ${REPL_CHECKS[${rcheck}]}/test.repl\"`" fi - if [ "`date +%s`" -gt "$timeout" ]; then + if [ "`date +%s`" -gt "${timeout}" ]; then timeout=true break + elif [ "`date +%s`" -gt "${warn_timeout}" ]; then + echo -en " waiting for sync... " fi done if [ "${timeout}" = "true" ]; then