[Pkg-pulseaudio-devel] Bug#488752: pulseaudio: initscript returns wrong status
Aron Griffis
agriffis at gmail.com
Tue Jul 1 01:30:38 UTC 2008
Package: pulseaudio
Version: 0.9.10-2
Severity: normal
/etc/init.d/pulseaudio reports the wrong status for start. $? is
referenced after code following start-stop-daemon. Most of the
time it will be zero regardless of whether or not the daemon
starts.
The following patch solves the problem:
--- /etc/init.d/pulseaudio.agriffis 2008-06-30 21:29:58.000000000 -0400
+++ /etc/init.d/pulseaudio 2008-06-30 21:30:03.000000000 -0400
@@ -26,8 +26,10 @@
test "$PULSEAUDIO_SYSTEM_START" != "1" && exit 0
pulseaudio_start () {
+ declare status
log_begin_msg "Starting PulseAudio Daemon"
start-stop-daemon -x $DAEMON -p $PIDFILE --start -- --system --daemonize --high-priority --log-target=syslog --disallow-module-loading=$DISALLOW_MODULE_LOADING
+ status=$?
if [ -e /var/run/pulse/.esd_auth ]; then
chown pulse:pulse-access /var/run/pulse/.esd_auth
chmod 640 /var/run/pulse/.esd_auth
@@ -36,7 +38,7 @@
chown pulse:pulse-access /var/run/pulse/.pulse-cookie
chmod 640 /var/run/pulse/.pulse-cookie
fi
- log_end_msg $?
+ log_end_msg $status
}
pulseaudio_stop () {
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (650, 'testing'), (600, 'unstable'), (550, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages pulseaudio depends on:
ii adduser 3.108 add and remove users and groups
ii libasound2 1.0.16-2 ALSA library
ii libasyncns0 0.3-1 Asyncronous name service query lib
ii libc6 2.7-10 GNU C Library: Shared libraries
ii libcap1 1:1.10-14 support for getting/setting POSIX.
ii libdbus-1-3 1.2.1-2 simple interprocess messaging syst
ii libflac8 1.2.1-1.2 Free Lossless Audio Codec - runtim
ii libltdl3 1.5.26-4 A system independent dlopen wrappe
ii libogg0 1.1.3-4 Ogg Bitstream Library
ii liboil0.3 0.3.14-5 Library of Optimized Inner Loops
ii libpulsecore5 0.9.10-2 PulseAudio sound server core
ii libsamplerate0 0.1.3-1 audio rate conversion library
ii libsndfile1 1.0.17-4 Library for reading/writing audio
ii libwrap0 7.6.q-15 Wietse Venema's TCP wrappers libra
ii lsb-base 3.2-12 Linux Standard Base 3.2 init scrip
Versions of packages pulseaudio recommends:
ii gstreamer0.10-pulseaudio 0.9.7-2 GStreamer plugin for PulseAudio
ii libasound2-plugins 1.0.16-1+b1 ALSA library additional plugins
ii padevchooser 0.9.3-2 PulseAudio Device Chooser
ii paprefs 0.9.6-2 PulseAudio Preferences
ii pulseaudio-esound-compat 0.9.10-2 PulseAudio ESD compatibility layer
pn pulseaudio-module-hal <none> (no description available)
ii pulseaudio-module-x11 0.9.10-2 X11 module for PulseAudio sound se
-- no debconf information
More information about the Pkg-pulseaudio-devel
mailing list