monolithic/overlay/scripts/heartbeat.sh
VibroAxe faa6b3969d Rebase generic off monolithic
This commit rebases the generic code into the monolithic image
This allows the base image to be the more regularly accessed / edited image

Commits to lancachenet/generic:switcheroo will mimic this commit

Also fixes lancachenet/generic#108
2021-07-20 12:04:38 +00:00

16 lines
251 B
Bash
Executable file

#!/bin/bash
set -e
if [[ "$1" == "" ]]; then
BEATTIME=${BEAT_TIME}
else
BEATTIME=$1
if [[ "$1" == 0 ]]; then
exit 0;
fi
fi
while [ 1 ]; do
sleep $BEATTIME;
wget http://127.0.0.1/lancache-heartbeat -S -O - > /dev/null 2>&1 /dev/null
done