From 93bbd0fa1e94f8e8c78f949e3c7218e580e60636 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 28 Jan 2019 13:10:43 -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 d2d1b016..e4182f29 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -42,7 +42,7 @@ case "$1" in fi echo -en "${ADISP}ing Node ${nid} ($nip)...${idsCL[Default]}" $NCMD systemctl $3 $2 - if [[ $(${NCMD} pgrep mysql | wc -l) -gt "1" ]]; then + if [[ $(${NCMD} pgrep ${2} | wc -l) -gt "1" ]]; then echo -e "${idsCL[Green]}OK${idsCL[Default]}" elif [ "$3" = "Stop" ]; then echo -e "${idsCL[Red]}STOPPED${idsCL[Default]}" else echo -e "${idsCL[Red]}ERROR${idsCL[Default]}"