Update status.inc
This commit is contained in:
@@ -143,23 +143,27 @@ STATUS(){
|
|||||||
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
|
||||||
|
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
|
||||||
echo "H: ${nodestatus}"
|
NTS=$(grep -oP '(?<=status-check.).*?(?=.done)' <<< "${nodestatus}")
|
||||||
|
echo -e "$(cat ${STATUSRUN_TMPFOLDER}/status-check.${NTS}.running)"
|
||||||
|
rm -f ${STATUSRUN_TMPFOLDER}/status-check.${NTS}.done
|
||||||
|
(($nc_count++))
|
||||||
done
|
done
|
||||||
|
[ ${nc_count} -eq ${#ntypesel[@]} ] && completed=true
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
for NTYPE in "${ntypesel[@]}"; do
|
# for NTYPE in "${ntypesel[@]}"; do
|
||||||
completed=false
|
# completed=false
|
||||||
until [ "${completed}" == "true" ]; do
|
# until [ "${completed}" == "true" ]; do
|
||||||
if [ -f ${STATUSRUN_TMPFOLDER}/status-check.${NTYPE}.done ]; then
|
# if [ -f ${STATUSRUN_TMPFOLDER}/status-check.${NTYPE}.done ]; then
|
||||||
completed=true
|
# completed=true
|
||||||
# echo -e "$(cat ${STATUSRUN_TMPFOLDER}/status-check.${NTYPE}.running)"
|
# echo -e "$(cat ${STATUSRUN_TMPFOLDER}/status-check.${NTYPE}.running)"
|
||||||
fi
|
# fi
|
||||||
done
|
# done
|
||||||
done
|
# done
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user