Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BigBlueButton LiveStreaming
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sergio Vergata
BigBlueButton LiveStreaming
Commits
0f83c180
Commit
0f83c180
authored
4 years ago
by
TIS
Browse files
Options
Downloads
Patches
Plain Diff
add checks for pulseaudio - sometimes doesn't start, so retry
parent
ad193d2d
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docker-entrypoint.sh
+28
-3
28 additions, 3 deletions
docker-entrypoint.sh
with
28 additions
and
3 deletions
docker-entrypoint.sh
+
28
−
3
View file @
0f83c180
#!/bin/sh
#!/bin/
ba
sh
pulseaudio
--start
-vvv
--disallow-exit
--log-target
=
syslog
--high-priority
--exit-idle-time
=
-1
--daemonize
if
pulseaudio
--check
;
then
echo
"Pulseaudio already running - killing it..."
pulseaudio
--kill
fi
exec
"
$@
"
\ No newline at end of file
# sometimes pulseaudio fails to start (for unknown reason - try starting it again)
p
=
0
while
!
pulseaudio
--check
&&
[
$p
-lt
2
]
;
do
echo
"Starting pulseaudio..."
pulseaudio
--start
-vvv
--disallow-exit
--log-target
=
syslog
--high-priority
--exit-idle-time
=
-1
&
i
=
0
while
!
pulseaudio
--check
&&
[
$i
-lt
3
]
;
do
echo
"Waiting for pulseaudio to start..."
sleep
1
i
=
$((
i+1
))
done
p
=
$((
p+1
))
done
if
pulseaudio
--check
;
then
exec
"
$@
"
else
echo
"Error starting pulseaudio"
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment