Bug#630106: pulseaudio: /etc/init.d/puseaudio gives confusing behavior

David Batley d.j.batley at gmail.com
Sat Jun 11 15:41:10 UTC 2011


Ah, there is some documentation information in /etc/default/pulseaudio
- that makes me a lot happier. Not sure how I failed to notice that
file.

So I also think this error was just my stupidity at editing that flag
in init.d and not /etc/default/pulseaudio:

> Setting PULSEAUDIO_SYSTEM_START=1 didn't make a difference for me, apart from
> adding an error to syslog:
> Jun 11 00:15:50 selidor pulseaudio[2665]: pid.c: Daemon already running.


I notice ubuntu's init.d script has:
> if [ "$PULSEAUDIO_SYSTEM_START" != "1" ]; then
> 	log_warning_msg "PulseAudio configured for per-user sessions"
> 	exit 0
> fi
> pulseaudio_start () {

instead of:
> pulseaudio_start () {
> 	test "$PULSEAUDIO_SYSTEM_START" != "1" && exit 0

which avoids most of the misleading behaviour I described. It also
sets the "-p $pidfile" in the correct order in the status - perhaps we
should copy their version?


Thanks
--dave





More information about the pkg-pulseaudio-devel mailing list