Update nodemgmt-scripts.sh
This commit is contained in:
@@ -180,8 +180,12 @@ STATUS(){
|
|||||||
fi
|
fi
|
||||||
echo -en " ${NM_SERVICES[${srvc}]}$spc: "
|
echo -en " ${NM_SERVICES[${srvc}]}$spc: "
|
||||||
fi
|
fi
|
||||||
|
srvctst=$(${NCMD} systemctl is-active ${srvc})
|
||||||
if [ "$(${NCMD} systemctl is-active ${srvc})" != "active" ]; then
|
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 [ ! -f ${FOLDER}/${nip}-${srvc}.down ]; then
|
||||||
|
|
||||||
if [ "${ST_ACTION}" != "check" ]; then
|
if [ "${ST_ACTION}" != "check" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user