This commit is contained in:
2023-07-16 15:51:17 -05:00
parent 0f2ef64553
commit cbb8551943
2 changed files with 3 additions and 4 deletions

View File

@@ -496,7 +496,6 @@ STATUS(){
elif [ -f ${NM_TMPFOLDER}/repl.${rcheck}.${nip}.timeout ]; then elif [ -f ${NM_TMPFOLDER}/repl.${rcheck}.${nip}.timeout ]; then
checked=timeout checked=timeout
fi fi
rm -f ${NM_TMPFOLDER}/repl.${rcheck}.${nip}.*
done done
if [ "${checked}" == "timeout" ]; then if [ "${checked}" == "timeout" ]; then
@@ -552,6 +551,7 @@ STATUS(){
${PH_CMD} rm -f ${NM_FOLDER}/test.repl & ${PH_CMD} rm -f ${NM_FOLDER}/test.repl &
${PH_CMD} rm -f ${NM_REPL_CHECK_LOC[${rcheck}]}/test.repl & ${PH_CMD} rm -f ${NM_REPL_CHECK_LOC[${rcheck}]}/test.repl &
fi fi
rm -f ${NM_TMPFOLDER}/repl.${rcheck}.*
done done
fi fi
fi fi

View File

@@ -793,9 +793,8 @@ GUI(){
fi;; fi;;
status) status)
if [ -f "${NM_FOLDER}/status-check.running" ]; then if [ -f "${NM_FOLDER}/status-check.running" ]; then
fd=`stat --format=%Y "${NM_FOLDER}/status-check.running"` cbd=`date +%s`-$(stat -c %Y ${NM_FOLDER}/status-check.running)
cbd=$((`date +%s` - 450)) [ ${cbd} -gt 900 ] && rm -f "${NM_FOLDER}/status-check.running"
[ ${fd} -lt ${cbd} ] && rm -f "${NM_FOLDER}/status-check.running"
fi fi
if [ ! -f "${NM_FOLDER}/status-check.running" ]; then if [ ! -f "${NM_FOLDER}/status-check.running" ]; then
touch "${NM_FOLDER}/status-check.running" touch "${NM_FOLDER}/status-check.running"