Update nodemgmt-scripts.sh
This commit is contained in:
@@ -881,13 +881,13 @@ GUI(){
|
||||
else
|
||||
STATUSRUNS=($(find ${NM_TMPFOLDER}/* -maxdepth 1 -type d -iname "status-*" 2>/dev/null))
|
||||
echo "HERE: ${#STATUSRUNS[@]}"
|
||||
if [ ${#STATUSRUNS[@]} -le 3 ]; then
|
||||
STATUS_START=$(date +%Y-%m-%d-%H-%M-%S)
|
||||
STATUSRUN_TMPFOLDER="${NM_TMPFOLDER}/status-${STATUS_START}"
|
||||
mkdir ${STATUSRUN_TMPFOLDER}
|
||||
touch "${STATUSRUN_TMPFOLDER}/status-check.running"
|
||||
rm -f ${NM_TMPFOLDER}/.overload
|
||||
|
||||
# if [ ${#STATUSRUNS[@]} -le 3 ]; then
|
||||
# STATUS_START=$(date +%Y-%m-%d-%H-%M-%S)
|
||||
# STATUSRUN_TMPFOLDER="${NM_TMPFOLDER}/status-${STATUS_START}"
|
||||
# mkdir ${STATUSRUN_TMPFOLDER}
|
||||
# touch "${STATUSRUN_TMPFOLDER}/status-check.running"
|
||||
# rm -f ${NM_TMPFOLDER}/.overload
|
||||
#
|
||||
# if [ "${2}" == "report" ]; then
|
||||
# echo "${STATUS_START} - LOCAL - ${NODE_HOSTNAME} - Starting Status Check" >> ${NM_LOGFILE}
|
||||
# echo -e "${STATUS_START} - Starting status check #############################\n" > ${STATUSRUN_TMPFOLDER}/status-check.running
|
||||
|
||||
Reference in New Issue
Block a user