diff --git a/inc/status.inc b/inc/status.inc index b0ac2e85..63d3106d 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -257,7 +257,7 @@ STATUS(){ checked=good elif [ -f ${STATUSRUN_TMPFOLDER}/repl.${rcheck}.${nip}.timeout ]; then checked=timeout - elif [ -f ${STATUSRUN_TMPFOLDER}/repl.${rcheck}.${nip}.skip ]; then + elif [ -f ${STATUSRUN_TMPFOLDER}/repl.${rcheck}.${nip}.skip ] || [ -f ${STATUSRUN_TMPFOLDER}/repl.${nip}.skip ]; then checked=skip fi if [ $(($(date +%s)-scanstart)) -gt 600 ]; then @@ -918,16 +918,14 @@ REPLSTART(){ skip=0 echo "HERE1: ${skip} - ${!PH}" if [ -f ${NM_TMPFOLDER}/${!PH}.disable ] || [ -f ${NM_TMPFOLDER}/${!PH}.down ]; then - rm -f ${STATUSRUN_TMPFOLDER}/repl.${rcheck}.${!PH}.running - touch ${STATUSRUN_TMPFOLDER}/repl.${rcheck}.${!PH}.skip + touch ${STATUSRUN_TMPFOLDER}/repl.${!PH}.skip if [ $(eval echo \${#${PHA}[@]}) -eq 2 ]; then skip=1 else PH=${NODETYPE}_HOSTS[1] if [ -f ${NM_TMPFOLDER}/${!PH}.disable ] || [ -f ${NM_TMPFOLDER}/${!PH}.down ]; then skip=1 - rm -f ${STATUSRUN_TMPFOLDER}/repl.${rcheck}.${!PH}.running - touch ${STATUSRUN_TMPFOLDER}/repl.${rcheck}.${!PH}.skip + touch ${STATUSRUN_TMPFOLDER}/repl.${!PH}.skip fi fi fi