Update status.inc
This commit is contained in:
@@ -562,8 +562,10 @@ STATUS_NODE(){
|
|||||||
|
|
||||||
srvcs=${NODETYPE}_SERVICES_CHECK[@];
|
srvcs=${NODETYPE}_SERVICES_CHECK[@];
|
||||||
srvcstotest="$(join_by " " ${!srvcs})"
|
srvcstotest="$(join_by " " ${!srvcs})"
|
||||||
[ "${NODETYPE}" != "OFW" ] && srvctst=(`${NCMD} "systemctl is-active ${srvcstotest}"`)
|
if [ "${NODETYPE}" != "OFW" ]; then
|
||||||
echo "HERE: systemctl is-active ${srvcstotest} = ${srvctst}"
|
[ "${NCMD}" != "" ] && srvctst=(`${NCMD} "systemctl is-active ${srvcstotest}"`) || srvctst=(`systemctl is-active ${srvcstotest}`)
|
||||||
|
fi
|
||||||
|
echo "HERE: (${NCMD} "systemctl is-active ${srvcstotest}") = ${srvctst}"
|
||||||
sr=0
|
sr=0
|
||||||
for srvc in "${!srvcs}"; do
|
for srvc in "${!srvcs}"; do
|
||||||
if [ "${STATUS_ACTION}" != "report" ]; then
|
if [ "${STATUS_ACTION}" != "report" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user