Skip to content

Commit 11ae20b

Browse files
committed
Enhance AirPlay receiver startup script with PulseAudio connection checks and increased wait time
1 parent 478b8a9 commit 11ae20b

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

docker-compose.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,20 @@ services:
9393
echo "Updated config:"
9494
grep 'name =' /etc/shairport-sync.conf
9595
96+
# Debug: Check PulseAudio access
97+
echo "Checking PulseAudio connection..."
98+
export PULSE_SERVER=$${PULSE_SERVER}
99+
echo "PULSE_SERVER is: $${PULSE_SERVER}"
100+
101+
# Test if we can connect to pulse
102+
pactl info || echo "Warning: Could not connect to PulseAudio"
103+
96104
# Wait a moment for system to be ready
97-
sleep 2
105+
sleep 5
98106
99107
# Start shairport-sync directly with verbose output
100-
echo "Starting shairport-sync directly..."
101-
exec shairport-sync -c /etc/shairport-sync.conf -v -d
108+
echo "Starting shairport-sync..."
109+
exec shairport-sync -c /etc/shairport-sync.conf -v
102110
depends_on:
103111
- homespeaker.server2
104112

0 commit comments

Comments
 (0)