Update nodemgmt-scripts.sh

This commit is contained in:
2022-11-06 14:16:11 -06:00
parent 0f386d116a
commit a59a1768dc

View File

@@ -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