Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-11 08:41:31 -06:00
parent 38dc13bb19
commit 3f5c281422

View File

@@ -1187,7 +1187,7 @@ SERVICE(){
$NCMD systemctl $2 $1
if [[ "enable,disable" = *"${2}"* ]] || [ "${1}" = "daemon-reload" ]; then
echo -e "${idsCL[Green]}OK${idsCL[Default]}"
elif [ "$(${NCMD} systemctl is-active ${1})" != "active" ]; then
elif [ "$(${NCMD} systemctl is-active ${1})" = "active" ]; then
echo -e "${idsCL[Green]}OK${idsCL[Default]}"
elif [ "$2" = "stop" ]; then
echo -e "${idsCL[Red]}STOPPED${idsCL[Default]}"