Update nodemgmt-scripts.sh
This commit is contained in:
@@ -182,6 +182,11 @@ STATUS(){
|
|||||||
fi
|
fi
|
||||||
srvctst=$(${NCMD} systemctl is-active ${srvc})
|
srvctst=$(${NCMD} systemctl is-active ${srvc})
|
||||||
echo "${NCMD} systemctl is-active ${srvc} = ${srvctst}"
|
echo "${NCMD} systemctl is-active ${srvc} = ${srvctst}"
|
||||||
|
if [ "${srvctst}" == "active" ]; then
|
||||||
|
echo "yes"
|
||||||
|
else
|
||||||
|
echo "no"
|
||||||
|
fi
|
||||||
if [ "${srvctst}" != "active" ] && [ "${srvc}" == "mysql" ]; then
|
if [ "${srvctst}" != "active" ] && [ "${srvc}" == "mysql" ]; then
|
||||||
mysqlgo=false;
|
mysqlgo=false;
|
||||||
[ "$(${NCMD} systemctl is-active mariadb)" == "active" ] && mysqlgo=true;
|
[ "$(${NCMD} systemctl is-active mariadb)" == "active" ] && mysqlgo=true;
|
||||||
|
|||||||
Reference in New Issue
Block a user