mpd unable to create database
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linux Mint |
Fix Released
|
Undecided
|
Unassigned | ||
mpd (Debian) |
Fix Released
|
Unknown
|
|||
mpd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Version: Linux Mint 12 (Gnome 64-bit)
After installing mpd via apt-get, the service refuses to create the needed database. This behaviour is easily reproducable. Especially when having a look at /etc/init.d/mpd, which ends up with:
case "$1" in
start)
mpd_start
;;
stop)
mpd_stop
;;
status)
status_of_proc -p $PIDFILE $DAEMON $NAME
;;
restart|
mpd_stop
mpd_start
;;
force-start)
mpd_start
;;
force-restart)
mpd_stop
mpd_start
;;
force-reload)
mpd_stop
mpd_start
;;
*)
echo "Usage: $0 {start|
exit 2
;;
So the parameter "start-create-db" will never be caught. Neither is there any rountine within the mpd_start-function concerning the database.
I fixed the problem so far by using /etc/init.d/mpd as provided by Debian 6.0.3:
"
[...]
mpd_start () {
if [ "$START_MPD" != "true" ]; then
exit 0
fi
log_daemon_msg "Starting $DESC" "$NAME"
if [ -z "$PIDFILE" -o -z "$DBFILE" ]; then
exit 1
fi
PIDDIR=
if [ ! -d "$PIDDIR" ]; then
mkdir -m 0755 $PIDDIR
chown mpd:audio $PIDDIR
fi
if [ "$FORCE_CREATE_DB" -o ! -f "$DBFILE" ]; then
$DAEMON --create-db "$MPDCONF" > /dev/null 2>&1
fi
start-
--exec "$DAEMON" -- $MPD_OPTS "$MPDCONF"
log_end_msg $?
}
[...]
case "$1" in
start)
mpd_start
;;
stop)
mpd_stop
;;
restart|
mpd_stop
mpd_start
;;
force-
mpd_start
;;
force-restart)
mpd_stop
mpd_start
[...]
"
Kind regards
René Franke
Wiesbaden, Germany
Related branches
- Ubuntu branches: Pending requested
-
Diff: 27 lines (+8/-1)2 files modifieddebian/changelog (+7/-0)
debian/mpd.init.d (+1/-1)
Changed in mpd (Ubuntu): | |
assignee: | nobody → Ronny Cardona (rcart) |
Changed in mpd (Ubuntu): | |
assignee: | Ronny Cardona (rcart) → nobody |
Changed in mpd (Debian): | |
status: | Unknown → New |
Changed in mpd (Debian): | |
status: | New → Fix Committed |
Changed in mpd (Debian): | |
status: | Fix Committed → Fix Released |
Changed in linuxmint: | |
status: | New → Fix Released |
Hello René.
You should take a look at the changelog in 0.16.2-1 version: https:/ /launchpad. net/ubuntu/ +source/ mpd/0.16. 2-1ubuntu1 wiki.ubuntu. com/BugSquad
---
Ubuntu Bug Squad volunteer triager
http://