FS#8219 - calling '/etc/rc.d/mpd stop' does not kill the daemon

Attached to Project: Arch Linux
Opened by Andrea Benazzo (benazzo) - Friday, 05 October 2007, 09:46 GMT
Last edited by Aaron Griffin (phrakture) - Monday, 04 February 2008, 17:26 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Damir Perisa (damir.perisa)
Architecture All
Severity Medium
Priority Normal
Reported Version 2007.08.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The code '/usr/bin/mpd --kill /etc/mpd.conf &> /dev/null' in /etc/rc.d/mpd in the stop function does not work.

Instead use this:

'/usr/bin/mpd --kill &> /dev/null'


Thanks.
This task depends upon

Closed by  Aaron Griffin (phrakture)
Monday, 04 February 2008, 17:26 GMT
Reason for closing:  Works for me
Additional comments about closing:  Unable to reproduce. Upstream bug
Comment by Roman Kyrylych (Romashka) - Friday, 05 October 2007, 10:42 GMT
It would be nice to see your mpd.conf
Comment by Andrea Benazzo (benazzo) - Friday, 05 October 2007, 10:47 GMT
Here it is.
   mpd.conf (8.4 KiB)
Comment by Roman Kyrylych (Romashka) - Friday, 05 October 2007, 10:55 GMT
please make a clean start of mpd and check if /var/run/mpd/mpd.pid contains the PID of mpd process.
Comment by Andrea Benazzo (benazzo) - Friday, 05 October 2007, 11:52 GMT
Ok..here are the results:

1) after a clean start, the pid file is correctly created and contains the correct pid of the new running mpd daemon.

2) with my little modification in the stop function in /etc/rc.d/mpd, the pid file is correctly deleted



uhm..I've just tried to stop the daemon with the standard rc.d/mpd script, and the daemon correctly closes down, and the pid file gets deleted as well.

I don't understand why this works now, but I do remember that this morning I tried a couple of times before posting this bug, and I could start the daemon, but I could only close it via `killall mpd` or my modificated rc.d/mpd. It failed whenever I used the standard rc.d/mpd script.


Mpd logs show nothing unusual.
Comment by Damir Perisa (damir.perisa) - Sunday, 03 February 2008, 12:49 GMT
hmm, whats the status of this?
Comment by Roman Kyrylych (Romashka) - Monday, 04 February 2008, 12:10 GMT
This bug happened to me 2 days ago, but I'm unable to reproduce it.
In that case mpd hanged when I added some files to playlist with gmpc, then it didn't want to start even after kill -9 all mpd processes, removing playlist, regenerating db and making sure no pid/lock/etc. files exist - only after system rebooting it started to work.
So I think that's mpd's mainstream bug.

Loading...