diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index dc84e455..c0e353f0 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -793,12 +793,8 @@ GUI(){ for i in $getStuckNM; do /bin/kill $i done - fi - - if [ -f "${NM_FOLDER}/status-check.running" ]; then - cbd=`date +%s`-$(stat -c %Y ${NM_FOLDER}/status-check.running) - [ ${cbd} -gt 900 ] && rm -f "${NM_FOLDER}/status-check.running" fi + if [ ! -f "${NM_FOLDER}/status-check.running" ]; then touch "${NM_FOLDER}/status-check.running" if [ "${2}" == "report" ]; then