From f84d6982482197a084ac811268346bbe6bdfdc53 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 3 Dec 2022 22:14:54 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 8b601956..280a6cb7 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -181,12 +181,8 @@ STATUS(){ echo -en " ${NM_SERVICES[${srvc}]}$spc: " fi srvctst=$(${NCMD} systemctl is-active ${srvc}) - echo "${NCMD} systemctl is-active ${srvc} = ${srvctst}" - if [ "${srvctst}" = "active" ]; then - echo "yes" - else - echo "no" - fi + #echo "${NCMD} systemctl is-active ${srvc} = ${srvctst}" + #if [ "${srvctst}" = "active" ]; then echo "yes"; else echo "no"; fi if [ "${srvctst}" != "active" ] && [ "${srvc}" = "mysql" ]; then mysqlgo=false; [ "$(${NCMD} systemctl is-active mariadb)" = "active" ] && mysqlgo=true; @@ -196,9 +192,8 @@ STATUS(){ elif [ "${srvctst}" = "active" ] && ([ "${srvc}" = "mysql" ] || [ "${srvc}" = "mariadb" ]); then mysqlgo=true fi - echo "mysqlgo=${mysqlgo}" + #echo "mysqlgo=${mysqlgo}" if [ "{srvctst}" != "active" ] && [ "${mysqlgo}" != "true" ]; then - echo "1" if [ ! -f ${FOLDER}/${nip}-${srvc}.down ]; then if [ "${ST_ACTION}" != "check" ]; then @@ -225,7 +220,6 @@ STATUS(){ fi fi else - echo "2" if [ "${ST_ACTION}" != "check" ]; then echo -e "${idsCL[Green]}Running${idsCL[Default]}" fi