Update run.sh
This commit is contained in:
4
run.sh
4
run.sh
@@ -14,7 +14,7 @@ if [ "$1" != "service" ] && [ "$1" != "status-check" ]; then
|
||||
echo ""
|
||||
echo -e "${idsCL[Yellow]} NodeMgmt - Galera/NGINX Node Management${idsCL[Default]} ${idsCL[DarkGray]}(ver-${VERS})${idsCL[Default]}"
|
||||
echo -e "${idsCL[Yellow]}-------------------------------------------------------------${idsCL[Default]}"
|
||||
echo -e "Node hostname: ${idsST[Bold]}${idsCL[LightCyan]}${NODE_HOSTNAME}${idsCL[Default]}${idsST[Reset]}"
|
||||
echo -e "Node hostname: ${idsST[Bold]}${idsCL[LightCyan]}${NODE_HOSTNAME}${idsCL[Default]}${idsST[Reset]}"
|
||||
if [ "${LOCAL_SERVICES}" != "" ]; then SERVICES=$( IFS=$','; echo "${LOCAL_SERVICES[*]}" )
|
||||
else SERVICES=$( IFS=$','; echo "${NODE_SERVICES[*]}" )
|
||||
fi
|
||||
@@ -22,7 +22,7 @@ if [ "$1" != "service" ] && [ "$1" != "status-check" ]; then
|
||||
|
||||
for srvc in "${SERVICES2[@]}"
|
||||
do
|
||||
echo -en "${NM_SERVICES[${srvc}]} "
|
||||
echo -en "${NM_SERVICES[${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