diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index d57cf54f..e374d7a2 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -37,6 +37,7 @@ case "$1" in ssh root@${nip} systemctl $3 $2 if [[ $(is_service_running ${nip} ${2}) -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]}" fi nid=`expr $nid + 1` @@ -49,7 +50,6 @@ case "$1" in ;; newcert) - "$0" service haproxy stop echo -e "${idsCL[LightGreen]}Requesting Certificate for '${idsCL[Yellow]}${2}${idsCL[LightGreen]}'...${idsCL[Default]}" # $DAEMON certonly --standalone -d $2