Update services.inc

This commit is contained in:
2025-07-05 19:28:45 -05:00
parent d4f2f30aae
commit e74e74c02a

View File

@@ -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