Update nodemgmt-scripts.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user