From 6f1d0fd18ea49efade199db00bb281c8c21bea1d Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 3 Dec 2022 22:02:33 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 9e012bee..6d4018a2 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -182,6 +182,11 @@ STATUS(){ fi srvctst=$(${NCMD} systemctl is-active ${srvc}) 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;