From d66ebe9be2672f5283e887276d58c32884144a06 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 24 Jun 2014 07:47:11 +0200 Subject: fixup pid file place and rights --- package/mpd/Makefile | 2 +- package/mpd/files/mpd.conf | 2 +- package/mpd/files/mpd.init | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) (limited to 'package') 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 -- cgit v1.2.3