Update nodemgmt-scripts.sh

This commit is contained in:
2019-01-28 16:32:36 -06:00
parent adb4541045
commit 7f58cd5445

View File

@@ -118,19 +118,19 @@ case "$1" in
fi
echo -e "${idsCL[Yellow]}-------------------------------------------------------------${idsCL[Default]}"
echo -e "Node hostname: ${nip}"
echo -e "Node: ${nip}"
for srvc in "${NODE_SERVICES[@]}"
do
if [ "${srvc}" = "mysql" ]; then SER='MySQL'
elif [ "${srvc}" = "nginx" ]; then SER='NGINX'
elif [ "${srvc}" = "gogs" ]; then SER='Gogs'
if [ "${srvc}" = "mysql" ]; then SER='MySQL '
elif [ "${srvc}" = "nginx" ]; then SER='NGINX '
elif [ "${srvc}" = "gogs" ]; then SER='Gogs '
elif [ "${srvc}" = "haproxy" ]; then SER='HAProxy'
elif [ "${srvc}" = "keepalived" ]; then SER='Keepalived'
elif [ "${srvc}" = "maxscale" ]; then SER='MaxScale'
else SER="${2}"
fi
echo -en "${SER}: "
echo -en "${SER}: "
if [ $(${NCMD} pgrep ${srvc} | wc -l) -gt "0" ]; then
echo -e "${idsCL[Green]}Running${idsCL[Default]}"
else echo -e "${idsCL[Red]}Not Running${idsCL[Default]}"