Skip to content

Commit 0cc2ca5

Browse files
committed
Merge branch 'main' of github.com:Zozman/stream-webpage-container into golang1.24.6
2 parents 705a455 + 6b4950a commit 0cc2ca5

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

start.sh

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,24 @@ aplay -l 2>/dev/null || echo "No ALSA playback devices found"
8686
# Wait for audio system to stabilize
8787
sleep 2
8888

89-
echo "=== Starting application ==="
89+
echo "=== Verifying System Readiness ==="
90+
91+
# Wait for X server to be fully functional
92+
echo "Waiting for X server to be fully ready..."
93+
while ! xdpyinfo -display :$DISPLAY_NUM >/dev/null 2>&1; do
94+
echo "X server not yet ready, waiting..."
95+
sleep 2
96+
done
97+
echo "✓ X server is ready"
98+
99+
# Wait for PulseAudio to be fully functional
100+
echo "Waiting for PulseAudio to be ready..."
101+
while ! pactl info >/dev/null 2>&1; do
102+
echo "PulseAudio not yet ready, waiting..."
103+
sleep 2
104+
done
105+
echo "✓ PulseAudio is responding"
106+
107+
echo "=== All Dependencies Ready - Starting Application ==="
90108
# Start the stream application
91109
exec /stream

0 commit comments

Comments
 (0)