This commit is contained in:
2024-02-09 10:34:50 -06:00
parent 16474c6b55
commit 3c26dcae65
2 changed files with 4 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
VERS='5.1.83-02062024'
VERS='5.1.84-02062024'
NM_BETA=false
noheader=' service status-check nightlyrephp7.3-fpm,new backup report check checkcerts gitea update-nodes copynpmcerts singleservercheck update-dyndns backup-offsitepfsense gui nightlyreview update log betacheck '

View File

@@ -64,6 +64,7 @@ STATUS(){
if [ ! -f ${NM_FOLDER}/${!PH}.down ] && [ ! -f ${NM_TMPFOLDER}/${nip}.down ]; then
var2=${NTYPE}_REPL_CHECK[@]
for rcheck in "${!var2}"; do
until [ $(ls ${STATUSRUN_TMPFOLDER}/repl.*.running 2>/dev/null | wc -l) -lt ${SCAN_THREADS} ]; do tmp=tmp; done
REPLCHECK "${rcheck}" "${nip}" "${PH_CMD}" "${STATUS_ACTION}" & >/dev/null 2>&1
done
fi
@@ -806,6 +807,7 @@ REPLCHECK(){
rcheck=${1}
nip=${2}
PH_CMD=${3}
touch ${STATUSRUN_TMPFOLDER}/repl.${rcheck}.${nip}.running
# if [ "${4}" != "check" ]; then
# timeout=`date --date='1 minutes' +%s`
@@ -828,6 +830,7 @@ REPLCHECK(){
break
fi
done
rm -f ${STATUSRUN_TMPFOLDER}/repl.${rcheck}.${nip}.running
[ "${timeout}" == "true" ] && touch ${STATUSRUN_TMPFOLDER}/repl.${rcheck}.${nip}.timeout || touch ${STATUSRUN_TMPFOLDER}/repl.${rcheck}.${nip}.good
}