Update status.inc

This commit is contained in:
2024-11-20 15:54:08 -06:00
parent 5720deba4d
commit 235c2ea59e

View File

@@ -562,8 +562,10 @@ STATUS_NODE(){
srvcs=${NODETYPE}_SERVICES_CHECK[@];
srvcstotest="$(join_by " " ${!srvcs})"
[ "${NODETYPE}" != "OFW" ] && srvctst=(`${NCMD} "systemctl is-active ${srvcstotest}"`)
echo "HERE: systemctl is-active ${srvcstotest} = ${srvctst}"
if [ "${NODETYPE}" != "OFW" ]; then
[ "${NCMD}" != "" ] && srvctst=(`${NCMD} "systemctl is-active ${srvcstotest}"`) || srvctst=(`systemctl is-active ${srvcstotest}`)
fi
echo "HERE: (${NCMD} "systemctl is-active ${srvcstotest}") = ${srvctst}"
sr=0
for srvc in "${!srvcs}"; do
if [ "${STATUS_ACTION}" != "report" ]; then