diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 48b87dc1..d71b334e 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -184,7 +184,7 @@ STATUS-CHECK(){ fi #REPLICATION CHECK declare -i timeout - timeout=`date --date='30 seconds' +%s` + timeout=`date --date='5 seconds' +%s` nid=1 for nip in "${NODE_HOSTS[@]}" do @@ -204,11 +204,11 @@ STATUS-CHECK(){ break fi done - if [ "${timeout}" = "true" ]; then + if [ "${timeout}" != "true" ]; then + rm -f ${FOLDER}/${nip}-${rcheck}.down + elif [ ! -f ${FOLDER}/${nip}-${rcheck}.down ] touch ${FOLDER}/${nip}-${rcheck}.down echo "Timeout occurred in waiting for replication between primary node and iDS-Node${nid} (${nip}) for the replicated folder of '${rcheck}'." | mail -s "Status-Check" ${STATUS_CHECK_EMAIL} - else - rm -f ${FOLDER}/${nip}-${rcheck}.down fi done echo