mirror of
https://github.com/ossrs/srs.git
synced 2025-02-15 04:42:04 +00:00
6 lines
220 B
Bash
Executable file
6 lines
220 B
Bash
Executable file
#/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
|