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