Update nodemgmt-scripts.sh

This commit is contained in:
2019-01-27 21:58:54 -06:00
parent 4a6e8672d6
commit 10cf113d66

View File

@@ -82,7 +82,7 @@ case "$1" in
nid=1
for nip in "${node_hosts[@]}"
do
echo -en "${idsCL[Cyan]}${STA}ing Node ${nid}...${idsCL[Default]}"
echo -en "${idsCL[Cyan]}${STA}ing Node ${nid} ($nip)...${idsCL[Default]}"
ssh root@${nip} systemctl $3 $2
if [[ $(ssh root@${nip} ps -ef | grep -c ${2}) -ne 1 ]]; then
echo -e "${idsCL[Green]}OK${idsCL[Default]}"