check for agentapi pid

This commit is contained in:
Cian Johnston 2026-01-07 16:29:23 +00:00
parent 3829a20756
commit 4aa4448d81
No known key found for this signature in database
GPG Key ID: F57401F0A40CBB29

View File

@ -18,6 +18,12 @@ while true; do
break
else
echo "$(date): agentapi server not responding"
agentapi_pid=$(pidof agentapi)
if [ -z "$agentapi_pid" ]; then
echo "$(date): agentapi process not found"
else
echo "$(date): agentapi pid: $agentapi_pid"
fi
sleep 1
continue
fi