Add Heartbeat ping on every analysis to see if service is working

This commit is contained in:
Phill Price
2022-09-29 17:57:40 +01:00
parent fc71576737
commit ea5d9d70eb
2 changed files with 28 additions and 17 deletions
+5
View File
@@ -152,6 +152,11 @@ ${BIRDWEATHER_ID_LOG}
${INCLUDEPARAM} \
${EXCLUDEPARAM} \
${BIRDWEATHER_ID_PARAM}
if [ ! -z $HEARTBEAT_URL ]; then
echo "Performing Heartbeat"
IP=`curl -s ${HEARTBEAT_URL}`
echo "Heartbeat: $IP"
fi
done
}