check for agentapi pid
This commit is contained in:
parent
3829a20756
commit
4aa4448d81
@ -18,6 +18,12 @@ while true; do
|
|||||||
break
|
break
|
||||||
else
|
else
|
||||||
echo "$(date): agentapi server not responding"
|
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
|
sleep 1
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user