diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index d6d29871..f5672277 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1382,7 +1382,7 @@ SERVICE(){ checkhost=$(CHECK_HOST ${nip}) if [ "${checkhost}" != "false" ]; then #$NCMD systemctl $2 $1 - if [ "${3}" != "q" ]; then + if [ "${3}" = "q" ]; then if [[ "enable,disable" = *"${2}"* ]] || [ "${1}" = "daemon-reload" ]; then echo -e "${idsCL[Green]}OK${idsCL[Default]}" elif [ "$(${NCMD} systemctl is-active ${1})" = "active" ]; then