diff --git a/inc/services.inc b/inc/services.inc index 9b2c9363..756bf107 100755 --- a/inc/services.inc +++ b/inc/services.inc @@ -426,7 +426,7 @@ SERVICE_MGMT(){ if [ "${NOGOCHK}" == "true" ]; then if [ ${QUIET} -eq 0 ]; then - echo -en "1${NM_SRVCOPTS[${SERVICE['action']}]}ing on ${nodename} ($nip)... ${idsCL[Default]}" + echo -en "${NM_SRVCOPTS[${SERVICE['action']}]}ing on ${nodename} ($nip)... ${idsCL[Default]}" fi checkhost=$(CHECK_HOST ${nip}) if [ "${checkhost}" != "false" ]; then @@ -448,7 +448,9 @@ SERVICE_MGMT(){ srva=${SERVICE['service']} fi if [ "${SERVICE['action']}" != "status" ]; then + echo yes ${NCMD} systemctl ${SERVICE['action']} ${srva} >/dev/null 2>&1 + echo ok else echo ${NCMD} systemctl ${SERVICE['action']} ${srva} @@ -485,7 +487,7 @@ SERVICE_MGMT(){ done else #no-nodetypes, standalone setup - echo -en "2${NM_SRVCOPTS[${SERVICE['action']}]}ing on localhost ... ${idsCL[Default]}" + echo -en "${NM_SRVCOPTS[${SERVICE['action']}]}ing on localhost ... ${idsCL[Default]}" if [ "${SERVICE['action']}" != "status" ]; then systemctl ${SERVICE['action']} ${srva} >/dev/null 2>&1 else