Update nodemgmt-scripts.sh
This commit is contained in:
@@ -118,19 +118,19 @@ case "$1" in
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "${idsCL[Yellow]}-------------------------------------------------------------${idsCL[Default]}"
|
echo -e "${idsCL[Yellow]}-------------------------------------------------------------${idsCL[Default]}"
|
||||||
echo -e "Node: ${nip}"
|
echo -e "Node: ${nip}"
|
||||||
|
|
||||||
for srvc in "${NODE_SERVICES[@]}"
|
for srvc in "${NODE_SERVICES[@]}"
|
||||||
do
|
do
|
||||||
if [ "${srvc}" = "mysql" ]; then SER='MySQL '
|
if [ "${srvc}" = "mysql" ]; then SER='MySQL: '
|
||||||
elif [ "${srvc}" = "nginx" ]; then SER='NGINX '
|
elif [ "${srvc}" = "nginx" ]; then SER='NGINX: '
|
||||||
elif [ "${srvc}" = "gogs" ]; then SER='Gogs '
|
elif [ "${srvc}" = "gogs" ]; then SER='Gogs: '
|
||||||
elif [ "${srvc}" = "haproxy" ]; then SER='HAProxy'
|
elif [ "${srvc}" = "haproxy" ]; then SER='HAProxy:'
|
||||||
elif [ "${srvc}" = "keepalived" ]; then SER='Keepalived'
|
elif [ "${srvc}" = "keepalived" ]; then SER='Keepalived:'
|
||||||
elif [ "${srvc}" = "maxscale" ]; then SER='MaxScale'
|
elif [ "${srvc}" = "maxscale" ]; then SER='MaxScale:'
|
||||||
else SER="${2}"
|
else SER="${2}"
|
||||||
fi
|
fi
|
||||||
echo -en "${SER}: "
|
echo -en "${SER} "
|
||||||
if [ $(${NCMD} pgrep ${srvc} | wc -l) -gt "0" ]; then
|
if [ $(${NCMD} pgrep ${srvc} | wc -l) -gt "0" ]; then
|
||||||
echo -e "${idsCL[Green]}Running${idsCL[Default]}"
|
echo -e "${idsCL[Green]}Running${idsCL[Default]}"
|
||||||
else echo -e "${idsCL[Red]}Not Running${idsCL[Default]}"
|
else echo -e "${idsCL[Red]}Not Running${idsCL[Default]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user