You are not logged in.
Hey guys,
I use mpd (0.15.12-1) for playing music on my machine. It is configured to start mpd as a daemon at boot (via DAEMONS in rc.conf). Usually I have some tracks in the current playlist and mpd's status at shutdown is paused.
Now, sometimes it happens that when I boot the mpd daemon gets started and apparently changes it's status from "paused" to "playing". This starts the music playback even though I am not logged in and therefore can't stop the playback.
Since this may lead to rather embarrassing situations I wondered if anyone of you experienced the same problem. As far as I can see there are no corresponding forum threads or bugs in the bugtracker.
Thanks
2beers
Offline
Hello
I have a similar issue : I often halt my computer with mpd playing, and it restarts playback on startup. I modified /etc/rc.d/mpd to forcibly pause playback before stopping the daemon (so that it won't start on next boot) :
> ...
> stop)
> stat_busy "Stopping Music Player Daemon"
> /usr/bin/mpc pause
> /usr/bin/mpd --kill /etc/mpd.conf &> /dev/null
> ...
If it doesn't work for you (if you are sure you paused mpd when it happened), you can try stopping playback altogether with a `/usr/bin/mpc stop` invocation.
You need mpc from extra installed for it to work.
Cheers
Offline
The state_file option in .mpdconf tells mpd where to store your current mpd information (play/pause status, current playlist, etc). You can remove that setting from your mpdconf, delete the file, and it shouldn't resume anymore upon restart. You will however lose your playlist and whatever other information would normally be stored there each time you restart mpd.
Offline