Update nodemgmt-scripts.sh
This commit is contained in:
@@ -180,9 +180,6 @@ STATUS(){
|
||||
[ "${srvc}" == "gitea" ] && [ "${NTYPE}" == "WEB" ] && [[ $($NCMD /sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) != *${WEB_HOSTS[0]}* ]] && NOGOCHK=false || NOGOCHK=true
|
||||
if [ ${NOGOCHK} == true ]; then
|
||||
srvctst=(`${NCMD} systemctl is-active ${srvcstotest}`)
|
||||
echo "H1: ${srvcstotest}"
|
||||
echo "H2: $srvctst"
|
||||
echo "H3: $srvctst[0] ${srvctst[1]} ${srvctst[2]} ${srvctst[3]}"
|
||||
sr=0
|
||||
for srvc in "${!srvcs}"; do
|
||||
if [ "${ST_ACTION}" != "check" ]; then
|
||||
@@ -201,9 +198,6 @@ STATUS(){
|
||||
mysqlgo=true
|
||||
fi
|
||||
# echo "mysqlgo=${mysqlgo}"
|
||||
|
||||
echo "H: '$sr' - '${srvctst[$sr]}' - '$nip' - '$srvc' - '${mysqlgo}'"
|
||||
|
||||
if [ "${srvctst[$sr]}" != "active" ] && [ "${mysqlgo}" != "true" ]; then
|
||||
if [ ! -f ${FOLDER}/${nip}-${srvc}.down ]; then
|
||||
[ "${ST_ACTION}" != "check" ] && echo -e "${idsCL[Red]}Not Running${idsCL[Default]}"
|
||||
|
||||
Reference in New Issue
Block a user