add heartbeat script
This commit is contained in:
parent
11979229e6
commit
0a8cb8a391
6
trunk/htbt.sh
Executable file
6
trunk/htbt.sh
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
#/bin/bash
|
||||
for ((;;)); do
|
||||
echo "heatbeat at `date`"
|
||||
curl 'http://ossrs.net:8085/api/v1/servers' -H 'Content-Type: text/html' --data-binary "{\"ip\":\"${ip}\",\"device_id\":\"respberry-pi2\"}" && echo ""
|
||||
sleep 30
|
||||
done
|
||||
Loading…
Reference in New Issue
Block a user