pulseaudio init-script fails to restart
Bug #244414 reported by
Aron Griffis
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pulseaudio (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
Binary package hint: pulseaudio
package: pulseaudio-
on Ubuntu intrepid
Sometimes pulseaudio takes a second to stop. This can cause
restart to fail:
$ sudo /etc/init.
Stopping PulseAudio Daemon.
Starting PulseAudio Daemon/
This can be fixed by using the --retry option to
start-stop-daemon. With the attached patch, the initscript will
wait 3 seconds for pulseaudio to stop, and report the final status
appropriately. Note this is *up to* 3 seconds; start-stop-daemon
will poll regularly and exit early if possible.
Related branches
lp:~crimsun/pulseaudio/ubuntu
- Luke Yelavich: Pending requested
Changed in pulseaudio: | |
status: | New → Confirmed |
Changed in pulseaudio: | |
importance: | Undecided → Low |
status: | Confirmed → In Progress |
Changed in pulseaudio: | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
Because of sh -e, the script should abort immediately if start-stop-daemon returns non-zero status. To avoid that for the sake of error reporting, the provided patch could be modified as:
start-stop-daemon -p $PIDFILE --stop --retry TERM/3 || status=$?