removed set -euo pipefail and added auto container restarting to signaling server
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
# ── Clean up stale sockets from previous run ──────────────────────────────────
|
||||
rm -f /tmp/.X99-lock
|
||||
@@ -117,6 +116,7 @@ echo "socat mic listener started on TCP :12345"
|
||||
# gst_agent exits with code 1 on ICE failure or other fatal errors.
|
||||
# Without a restart loop, the container sits dead until manually restarted.
|
||||
# 3 second delay before each restart to avoid a tight crash loop.
|
||||
#
|
||||
while true; do
|
||||
python3 ~/streaming-agent/gst_agent.py
|
||||
echo "[gst_agent] exited with code $?, restarting in 3s..."
|
||||
|
||||
Reference in New Issue
Block a user