You are not logged in.

#1 2007-04-19 22:23:12

darweth
Member
From: Brooklyn, NY
Registered: 2007-04-07
Posts: 68

can't stop mpd [solved]

hey --- i just recently installed mpd doing a "user" install for bepogi, not a root install.  it loads fine at startup and i can play music using all sorts of clients fine, but i cannot shut it down at all.  i have to power off the pc with the daemon still running.  i try it manually too and see:

[root@bepogi bepogi]# /etc/rc.d/mpd start
:: Starting Music Player Daemon                                          [DONE]
[root@bepogi bepogi]# /etc/rc.d/mpd stop
:: Stopping Music Player Daemon                                          [FAIL]

hrm.  what could be the problem?  i asked in #mpd and they said it could be a kernel issue or something.  no idea.  any clues on this?

I am using the latest possible 2.6.20 kernel btw.

Last edited by darweth (2007-04-20 07:30:28)

Offline

#2 2007-04-20 01:26:27

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: can't stop mpd [solved]

You need to have a pid_file specified in your mpd.conf. Comment out that line and it will work.

# If you wish to use mpd --kill to stop MPD, then you must
# specify a file here in which to store MPD's process ID.
#
pid_file                        "~/.mpd/mpd.pid"


FWIW, the latest mpd package has this correct: http://cvs.archlinux.org/cgi-bin/viewcv … cvs-markup

Last edited by stonecrest (2007-04-20 01:28:27)


I am a gated community.

Offline

#3 2007-04-20 03:21:02

darweth
Member
From: Brooklyn, NY
Registered: 2007-04-07
Posts: 68

Re: can't stop mpd [solved]

Oh! Thank you very much! smile  I was using the Arch Wiki (perhaps I should edit it) and extra package.  There was no mention of this. smile  I really appreciate the help.

Offline

#4 2007-04-20 04:28:12

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: can't stop mpd [solved]

You're right, mpd's rc.d script was recently changed and this wasn't yet reflected on the wiki. I added it to the wiki along with the suggestion to also have a state_file (and what they are both used for).


I am a gated community.

Offline

Board footer

Powered by FluxBB