From a59a1768dcabb3b16df9a599eee1610016033442 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 6 Nov 2022 14:16:11 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index ae58cddb..cc699ae4 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -180,8 +180,12 @@ STATUS(){ fi echo -en " ${NM_SERVICES[${srvc}]}$spc: " fi - - if [ "$(${NCMD} systemctl is-active ${srvc})" != "active" ]; then + srvctst=$(${NCMD} systemctl is-active ${srvc}) + if [ "${srvctst}" != "active" ] && [ "${srvc}" == "mysql" ]; then + mysqlgo=false; + [ "$(${NCMD} systemctl is-active mariadb)" == "active" ] && mysqlgo=true; + } + if [ "{srvctst}" != "active" ] && [ "${mysqlgo}" != "true" ]; then if [ ! -f ${FOLDER}/${nip}-${srvc}.down ]; then if [ "${ST_ACTION}" != "check" ]; then