From c927f18f5038a2d4fd39de59cbacc4c61d7c79a1 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 6 Nov 2022 14:18:18 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index cc699ae4..5c5f7680 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -184,7 +184,10 @@ STATUS(){ if [ "${srvctst}" != "active" ] && [ "${srvc}" == "mysql" ]; then mysqlgo=false; [ "$(${NCMD} systemctl is-active mariadb)" == "active" ] && mysqlgo=true; - } + else if [ "${srvctst}" != "active" ] && [ "${srvc}" == "mariadb" ]; then + mysqlgo=false; + [ "$(${NCMD} systemctl is-active mysql)" == "active" ] && mysqlgo=true; + fi if [ "{srvctst}" != "active" ] && [ "${mysqlgo}" != "true" ]; then if [ ! -f ${FOLDER}/${nip}-${srvc}.down ]; then