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;