From a36a7a91239f14c2f83a34b1642760cc406fceee Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 27 Jan 2019 23:26:48 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index e52c4c4f..b134b534 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -34,7 +34,7 @@ case "$1" in do echo -en "${ADISP}ing Node ${nid} ($nip)...${idsCL[Default]}" ssh root@${nip} systemctl $3 $2 - if [[ $(is_service_running ${nip} ${2}) = "0" ]]; then + if [[ $(is_service_running ${nip} ${2}) != "0" ]]; then echo -e "${idsCL[Green]}OK${idsCL[Default]}" else echo -e "${idsCL[Red]}ERROR${idsCL[Default]}" fi