mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
add htbt script
This commit is contained in:
parent
0a8cb8a391
commit
3933819686
1 changed files with 0 additions and 0 deletions
6
trunk/scripts/htbt.sh
Executable file
6
trunk/scripts/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…
Add table
Add a link
Reference in a new issue