Merge pull request #598 from phillprice/feature/heartbeat
WIP: Heartbeat
This commit is contained in:
@@ -181,6 +181,12 @@ DATABASE_LANG=en
|
|||||||
## your installation is behind by, relative to the Github repo. This number
|
## your installation is behind by, relative to the Github repo. This number
|
||||||
## appears next to "Tools" when you're 50 or more commits behind.
|
## appears next to "Tools" when you're 50 or more commits behind.
|
||||||
|
|
||||||
|
## HEARTBEAT_URL is a location to ping every time some analysis is done
|
||||||
|
## no information is sent to the the URL, its a heart beat to show that the
|
||||||
|
## analysis is continuing
|
||||||
|
|
||||||
|
HEARTBEAT_URL=
|
||||||
|
|
||||||
SILENCE_UPDATE_INDICATOR=0
|
SILENCE_UPDATE_INDICATOR=0
|
||||||
|
|
||||||
## These are just for debugging
|
## These are just for debugging
|
||||||
|
|||||||
@@ -152,6 +152,11 @@ ${BIRDWEATHER_ID_LOG}
|
|||||||
${INCLUDEPARAM} \
|
${INCLUDEPARAM} \
|
||||||
${EXCLUDEPARAM} \
|
${EXCLUDEPARAM} \
|
||||||
${BIRDWEATHER_ID_PARAM}
|
${BIRDWEATHER_ID_PARAM}
|
||||||
|
if [ ! -z $HEARTBEAT_URL ]; then
|
||||||
|
echo "Performing Heartbeat"
|
||||||
|
IP=`curl -s ${HEARTBEAT_URL}`
|
||||||
|
echo "Heartbeat: $IP"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user