update
This commit is contained in:
4
run.sh
4
run.sh
@@ -14,8 +14,8 @@ if [ "$1" != "service" ] && [ "$1" != "status" ] && [ "$1" != "status-check" ];
|
||||
echo -e "Node hostname: ${NODE_HOSTNAME}"
|
||||
for srvc in "${NODE_SERVICES[@]}"
|
||||
do
|
||||
if [ "${idsNMservices[${srvc}]}" = "" ]; then idsNMservices[${srvc}]="${srvc}"; fi
|
||||
echo -en "${idsNMservices[${srvc}]} "
|
||||
if [ "${NM_SERVICES[${srvc}]}" = "" ]; then NM_SERVICES[${srvc}]="${srvc}"; fi
|
||||
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