mirror of
https://github.com/lancachenet/monolithic
synced 2024-11-22 12:03:07 +00:00
faa6b3969d
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
16 lines
251 B
Bash
Executable file
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
|