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

David Batley debian-bugs at dbatley.com
Sat Jun 11 00:20:28 UTC 2011


Package: pulseaudio
Version: 0.9.21-3+squeeze1
Severity: normal

I'm puzzled by pulseaudio's init.d file. It appears to be partly disabled
(although chkconfig reports it being in use) giving some actions misleading
behaviour.


First, a straightforward bug, if I run:
/etc/init.d/puseaudio status

the init script uses status_of_proc() from /lib/lsb/init-functions
the init script runs:

status_of_proc $DAEMON pulseaudio -p $PIDFILE

but init-functions expects -p pidfile to be at the start, otherwise the pidfile
is ignored. Changing to:

status_of_proc -p $PIDFILE $DAEMON pulseaudio

will fix this error, although it will then report an error as the pidfile isn't
created.



Which brings me to:
/etc/init.d/puseaudio start

This uses a variable:
PULSEAUDIO_SYSTEM_START=0

to causes the service NOT to start from the init script. It gets started from
somewhere else, but I'm not sure where. Imho, the the script silently returning
success here is somewhat misleading.

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.



Finally:
/etc/init.d/puseaudio stop

gives the error:

Stopping PulseAudio DaemonNo process in pidfile '/var/run/pulse/pid' found
running; none killed.
.... pulseaudio is not running.

I have pulseaudio running, but as it didn't start from the init.d script, it
didn't create a pidfile.

user at selidor:~$ ps -eo cmd | grep pulse
/usr/bin/pulseaudio --start



Is the init.d script the right thing to be using if I want to start/stop
pulseaudio, or is there a better way to do that?

Thanks
--dave


root at selidor:/home/user# dpkg-query -l 'pulseaudio*'
ii  pulseaudio                0.9.21-3+squeeze1         PulseAudio sound server
ii  pulseaudio-esound-compat  0.9.21-3+squeeze1         PulseAudio ESD
compatibility layer
ii  pulseaudio-module-gconf   0.9.21-3+squeeze1         GConf module for
PulseAudio sound server
ii  pulseaudio-module-x11     0.9.21-3+squeeze1         X11 module for
PulseAudio sound server
ii  pulseaudio-utils          0.9.21-3+squeeze1         Command line tools for
the PulseAudio sound server

root at selidor:/home/user# dpkg-query -l 'lsb-base'
ii  lsb-base                  3.2-23.2squeeze1          Linux Standard Base 3.2
init script functionality






-- System Information:
Debian Release: 6.0.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages pulseaudio depends on:
ii  adduser                3.112+nmu2        add and remove users and groups
ii  consolekit             0.4.1-4           framework for defining and trackin
ii  libasound2             1.0.23-2.1        shared library for ALSA applicatio
ii  libc6                  2.11.2-10         Embedded GNU C Library: Shared lib
ii  libcap2                1:2.19-3          support for getting/setting POSIX.
ii  libdbus-1-3            1.2.24-4          simple interprocess messaging syst
ii  libgdbm3               1.8.3-9           GNU dbm database routines (runtime
ii  libice6                2:1.0.6-2         X11 Inter-Client Exchange library
ii  libltdl7               2.2.6b-2          A system independent dlopen wrappe
ii  libpulse0              0.9.21-3+squeeze1 PulseAudio client libraries
ii  libsamplerate0         0.1.7-3           Audio sample rate conversion libra
ii  libsm6                 2:1.1.1-1         X11 Session Management library
ii  libsndfile1            1.0.21-3          Library for reading/writing audio 
ii  libspeexdsp1           1.2~rc1-1         The Speex extended runtime library
ii  libudev0               164-3             libudev shared library
ii  libx11-6               2:1.3.3-4         X11 client-side library
ii  libxtst6               2:1.1.0-3         X11 Testing -- Record extension li
ii  lsb-base               3.2-23.2squeeze1  Linux Standard Base 3.2 init scrip
ii  udev                   164-3             /dev/ and hotplug management daemo

Versions of packages pulseaudio recommends:
ii  gstreamer0.10-pulseaud 0.10.24-1         GStreamer plugin for PulseAudio
ii  libasound2-plugins     1.0.23-1+b1       ALSA library additional plugins
ii  pulseaudio-esound-comp 0.9.21-3+squeeze1 PulseAudio ESD compatibility layer
ii  pulseaudio-module-x11  0.9.21-3+squeeze1 X11 module for PulseAudio sound se

Versions of packages pulseaudio suggests:
ii  paman                  0.9.4-1           PulseAudio Manager
pn  paprefs                <none>            (no description available)
ii  pavucontrol            0.9.9-1           PulseAudio Volume Control
ii  pavumeter              0.9.3-1           PulseAudio Volume Meter
ii  pulseaudio-utils       0.9.21-3+squeeze1 Command line tools for the PulseAu

-- Configuration Files:
/etc/init.d/pulseaudio changed [not included]
/etc/pulse/daemon.conf changed [not included]

-- no debconf information





More information about the pkg-pulseaudio-devel mailing list