removed set -euo pipefail and added auto container restarting to signaling server

This commit is contained in:
2026-07-29 10:26:13 +01:00
parent 9755e2ccf5
commit b84c728470
2 changed files with 64 additions and 13 deletions
+1 -1
View File
@@ -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..."