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