summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/mpd/Makefile2
-rw-r--r--package/mpd/files/mpd.conf2
-rw-r--r--package/mpd/files/mpd.init4
3 files changed, 6 insertions, 2 deletions
diff --git a/package/mpd/Makefile b/package/mpd/Makefile
index e6556c130..c12af7446 100644
--- a/package/mpd/Makefile
+++ b/package/mpd/Makefile
@@ -5,7 +5,7 @@ include ${ADK_TOPDIR}/rules.mk
PKG_NAME:= mpd
PKG_VERSION:= 0.18.11
-PKG_RELEASE:= 2
+PKG_RELEASE:= 3
PKG_MD5SUM:= be23120f342250e8352f6499cb960fd2
PKG_DESCR:= music player daemon
PKG_SECTION:= mm/audio
diff --git a/package/mpd/files/mpd.conf b/package/mpd/files/mpd.conf
index 300e67079..9da4517fd 100644
--- a/package/mpd/files/mpd.conf
+++ b/package/mpd/files/mpd.conf
@@ -5,7 +5,7 @@ music_directory "/music"
playlist_directory "/data/mpd/playlists"
state_file "/data/mpd/state"
db_file "/data/mpd/database"
-pid_file "/var/run/mpd.pid"
+pid_file "/var/run/mpd/mpd.pid"
log_file "syslog"
filesystem_charset "UTF-8"
id3v1_encoding "UTF-8"
diff --git a/package/mpd/files/mpd.init b/package/mpd/files/mpd.init
index abadb3ec2..a6d40652f 100644
--- a/package/mpd/files/mpd.init
+++ b/package/mpd/files/mpd.init
@@ -12,6 +12,10 @@ autostart)
exec sh $0 start
;;
start)
+ if [ ! -d /var/run/mpd ];then
+ mkdir -p /var/run/mpd
+ chown mpd:mpd /var/run/mpd
+ fi
if [ ! -d /data/mpd ];then
mkdir -p /data/mpd
chown mpd:mpd /data/mpd