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