[Pkg-mpd-maintainers] Bug#699208: `service mpd stop` fails silently

Christoph Egger christoph at debian.org
Tue Jan 29 00:48:48 UTC 2013


Package: mpd
Version: 0.16.8-1
Severity: serious

Hi!

  The mpd initscript silently fails to stop mpd (returns with exit
status 0 but mpd is still running):

christoph at mitoraj {3} ~ 
16:44 0 % sudo service mpd stop
[ ok ] Stopping Music Player Daemon: mpd.
christoph at mitoraj {3} ~ 
16:44 0 % ps auxf | grep mpd   
mpd       1816  0.3  0.1 300796 11468 ?        Ss   14:36   0:26 /usr/bin/mpd /etc/mpd.conf
1000     18185  0.0  0.0   9084  1540 ?        S+   16:44   0:00  |   \_ grep mpd
christoph at mitoraj {3} ~ 
16:44 0 % sudo bash -x /etc/init.d/mpd stop
+ . /lib/lsb/init-functions
+++ run-parts --lsbsysinit --list /lib/lsb/init-functions.d
++ for hook in '$(run-parts --lsbsysinit --list /lib/lsb/init-functions.d 2>/dev/null)'
++ '[' -r /lib/lsb/init-functions.d/20-left-info-blocks ']'
++ . /lib/lsb/init-functions.d/20-left-info-blocks
++ FANCYTTY=
++ '[' -e /etc/lsb-base-logging.sh ']'
++ true
+ PATH=/sbin:/bin:/usr/sbin:/usr/bin
+ NAME=mpd
+ DESC='Music Player Daemon'
+ DAEMON=/usr/bin/mpd
+ MPDCONF=/etc/mpd.conf
+ START_MPD=true
+ '[' -x /usr/bin/mpd ']'
+ '[' -r /etc/default/mpd ']'
+ . /etc/default/mpd
++ START_MPD=true
+ '[' -n '' ']'
+ '[' '!' -d /var/run/mpd ']'
++ sed -n 's/^[[:space:]]*db_file[[:space:]]*"\?\([^"]*\)\"\?/\1/p' /etc/mpd.conf
+ DBFILE=/var/lib/mpd/tag_cache
++ sed -n 's/^[[:space:]]*pid_file[[:space:]]*"\?\([^"]*\)\"\?/\1/p' /etc/mpd.conf
+ PIDFILE=/var/run/mpd/pid
+ case "$1" in
+ mpd_stop
+ '[' true '!=' true ']'
+ '[' -z /var/run/mpd/pid ']'
+ log_daemon_msg 'Stopping Music Player Daemon' mpd
+ '[' -z 'Stopping Music Player Daemon' ']'
+ log_daemon_msg_pre 'Stopping Music Player Daemon' mpd
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ '[' -t 1 ']'
+ '[' xrxvt-unicode-256color '!=' x ']'
+ '[' xrxvt-unicode-256color '!=' xdumb ']'
+ '[' -x /usr/bin/tput ']'
+ '[' -x /usr/bin/expr ']'
+ /usr/bin/tput hpa 60
+ /usr/bin/tput setaf 1
+ '[' -z ']'
+ FANCYTTY=1
+ case "$FANCYTTY" in
+ true
+ /bin/echo -n '[....] '
[....] + '[' -z mpd ']'
+ /bin/echo -n 'Stopping Music Player Daemon: mpd'
Stopping Music Player Daemon: mpd+ log_daemon_msg_post 'Stopping Music Player Daemon' mpd
+ :
+ start-stop-daemon --stop --quiet --oknodo --retry 5 --pidfile /var/run/mpd/pid --exec /usr/bin/mpd
+ log_end_msg 0
+ '[' -z 0 ']'
+ local retval
+ retval=0
+ log_end_msg_pre 0
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ '[' -t 1 ']'
+ '[' xrxvt-unicode-256color '!=' x ']'
+ '[' xrxvt-unicode-256color '!=' xdumb ']'
+ '[' -x /usr/bin/tput ']'
+ '[' -x /usr/bin/expr ']'
+ /usr/bin/tput hpa 60
+ /usr/bin/tput setaf 1
+ '[' -z 1 ']'
+ true
+ case "$FANCYTTY" in
+ true
++ /usr/bin/tput setaf 1
+ RED=''
++ /usr/bin/tput setaf 2
+ GREEN=''
++ /usr/bin/tput setaf 3
+ YELLOW=''
++ /usr/bin/tput op
+ NORMAL=''
+ /usr/bin/tput civis
+ /usr/bin/tput sc
+ /usr/bin/tput hpa 0
+ '[' 0 -eq 0 ']'
+ /bin/echo -ne '[ ok '
[ ok + /usr/bin/tput rc
+ /usr/bin/tput cnorm
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ '[' -t 1 ']'
+ '[' xrxvt-unicode-256color '!=' x ']'
+ '[' xrxvt-unicode-256color '!=' xdumb ']'
+ '[' -x /usr/bin/tput ']'
+ '[' -x /usr/bin/expr ']'
+ /usr/bin/tput hpa 60
+ /usr/bin/tput setaf 1
+ '[' -z 1 ']'
+ true
+ case "$FANCYTTY" in
+ true
++ /usr/bin/tput setaf 1
+ RED=''
++ /usr/bin/tput setaf 3
+ YELLOW=''
++ /usr/bin/tput op
+ NORMAL=''
+ '[' 0 -eq 0 ']'
+ echo .
.
+ log_end_msg_post 0
+ :
+ return 0


-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 10.0-0-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages mpd depends on:
ii  adduser                           3.113+nmu3
ii  libao4                            1.1.0-2
ii  libaudiofile1                     0.3.4-2
ii  libavahi-client3                  0.6.31-1
ii  libavahi-common3                  0.6.31-1
ii  libavahi-glib1                    0.6.31-1
ii  libavcodec53                      6:0.8.5-1
ii  libavformat53                     6:0.8.5-1
ii  libavutil51                       6:0.8.5-1
ii  libc0.1                           2.13-37
ii  libcurl3-gnutls                   7.26.0-1
ii  libfaad2                          2.7-8
ii  libflac8                          1.2.1-6
ii  libglib2.0-0                      2.33.12+really2.32.4-3
ii  libid3tag0                        0.15.1b-10
ii  libjack-jackd2-0 [libjack-0.116]  1.9.8~dfsg.4+20120529git007cdc37-5
ii  libmad0                           0.15.1b-7
ii  libmikmod2                        3.1.12-5
ii  libmms0                           0.6.2-3
ii  libmp3lame0                       3.99.5+repack1-3
ii  libmpcdec6                        2:0.1~r459-4
ii  libogg0                           1.3.0-4
ii  libpulse0                         2.0-6
ii  libsamplerate0                    0.1.8-5
ii  libshout3                         2.2.2-8
ii  libsqlite3-0                      3.7.13-1
ii  libvorbis0a                       1.3.2-1.3
ii  libvorbisenc2                     1.3.2-1.3
ii  libvorbisfile3                    1.3.2-1.3
ii  libwavpack1                       4.60.1-3
ii  lsb-base                          4.1+Debian8

mpd recommends no packages.

Versions of packages mpd suggests:
ii  avahi-daemon          0.6.31-1
ii  gmpc [mpd-client]     11.8.16-5
pn  icecast2              <none>
ii  mpc [mpd-client]      0.22-1
ii  ncmpcpp [mpd-client]  0.5.10-1.1
pn  pulseaudio            <none>

-- Configuration Files:
/etc/mpd.conf changed:
music_directory		"/var/lib/mpd/music"
playlist_directory		"/var/lib/mpd/playlists"
db_file			"/var/lib/mpd/tag_cache"
log_file			"/var/log/mpd/mpd.log"
pid_file			"/var/run/mpd/pid"
state_file			"/var/lib/mpd/state"
sticker_file                   "/var/lib/mpd/sticker.sql"
user				"mpd"
bind_to_address		"localhost"
input {
        plugin "curl"
}
audio_output {
	type		"oss"
	name		"My OSS Device"
	device		"/dev/dsp"	# optional
	format		"44100:16:2"	# optional
	mixer_device	"/dev/mixer"	# optional
	mixer_control	"PCM"		# optional
}
filesystem_charset		"UTF-8"
id3v1_encoding			"UTF-8"


-- no debconf information



More information about the Pkg-mpd-maintainers mailing list