Update nodemgmt-scripts.sh
This commit is contained in:
1 parent
b55b7845bc
commit
93bbd0fa1e
1 file changed
+1
-1
+1
-1
@@ -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]}"
|
||||
|
||||
Reference in new issue
Block a user