update
This commit is contained in:
12
run.sh
12
run.sh
@@ -14,16 +14,8 @@ if [ "$1" != "service" ] && [ "$1" != "status" ] && [ "$1" != "status-check" ];
|
||||
echo -e "Node hostname: ${NODE_HOSTNAME}"
|
||||
for srvc in "${NODE_SERVICES[@]}"
|
||||
do
|
||||
if [ "${srvc}" = "mysql" ]; then SER='MySQL: '
|
||||
elif [ "${srvc}" = "nginx" ]; then SER='NGINX: '
|
||||
elif [ "${srvc}" = "gogs" ]; then SER='Gogs: '
|
||||
elif [ "${srvc}" = "gitea" ]; then SER='Gitea: '
|
||||
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} "
|
||||
if [ "${idsNMservices[${srvc}]}" = "" ]; then idsNMservices[${srvc}]="${srvc}"; fi
|
||||
echo -en "${idsNMservices[${srvc}]} "
|
||||
if [ $(pgrep ${srvc} | wc -l) -gt "0" ]; then
|
||||
echo -e "${idsCL[Green]}Running${idsCL[Default]}"
|
||||
else echo -e "${idsCL[Red]}Not Running${idsCL[Default]}"
|
||||
|
||||
Reference in New Issue
Block a user