Update nodemgmt-scripts.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user