Update status.inc
This commit is contained in:
@@ -139,20 +139,22 @@ STATUS(){
|
|||||||
## NODE SERVICE AND DOCKER CHECK
|
## NODE SERVICE AND DOCKER CHECK
|
||||||
###################################
|
###################################
|
||||||
|
|
||||||
echo -en " ${idsCL[LightCyan]}Starting processes to collect node service & docker info : "
|
[ "${ST_ACTION}" != "check" ] && echo -en " ${idsCL[LightCyan]}Starting processes to collect node service & docker info : "
|
||||||
for NTYPE in "${ntypesel[@]}"; do
|
for NTYPE in "${ntypesel[@]}"; do
|
||||||
STATUS_NODE ${NTYPE} > ${STATUSRUN_TMPFOLDER}/status-check.${NTYPE}.running &
|
STATUS_NODE ${NTYPE} > ${STATUSRUN_TMPFOLDER}/status-check.${NTYPE}.running &
|
||||||
done
|
done
|
||||||
|
[ "${ST_ACTION}" != "check" ] && echo -e "${idsCL[Green]}Done${idsCL[Default]}\n"
|
||||||
|
|
||||||
|
|
||||||
nc_count=0; completed=false
|
nc_count=0; completed=false
|
||||||
until [ "${completed}" == "true" ]; do
|
until [ "${completed}" == "true" ]; do
|
||||||
for nodestatus in ${STATUSRUN_TMPFOLDER}/status-check.*.done; do
|
for nodestatus in ${STATUSRUN_TMPFOLDER}/status-check.*.done; do
|
||||||
NTS=$(grep -oP '(?<=status-check.).*?(?=.done)' <<< "${nodestatus}")
|
NTS=$(grep -oP '(?<=status-check.).*?(?=.done)' <<< "${nodestatus}")
|
||||||
if [ "${NTS}" != "*" ]; then
|
if [ "${NTS}" != "*" ]; then
|
||||||
# echo -e "$(cat ${STATUSRUN_TMPFOLDER}/status-check.${NTS}.running)"
|
echo -e "$(cat ${STATUSRUN_TMPFOLDER}/status-check.${NTS}.running)"
|
||||||
rm -f ${STATUSRUN_TMPFOLDER}/status-check.${NTS}.done
|
rm -f ${STATUSRUN_TMPFOLDER}/status-check.${NTS}.done
|
||||||
((nc_count++))
|
((nc_count++))
|
||||||
echo "${NTS} == ${nc_count} == ${nodestatus}"
|
# echo "${NTS} == ${nc_count} == ${nodestatus}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
[ ${nc_count} -eq ${#ntypesel[@]} ] && completed=true || sleep 1s
|
[ ${nc_count} -eq ${#ntypesel[@]} ] && completed=true || sleep 1s
|
||||||
|
|||||||
Reference in New Issue
Block a user