diff options
Diffstat (limited to 'package')
-rw-r--r-- | package/mpd/files/mpd.conf | 2 | ||||
-rw-r--r-- | package/mpd/files/mpd.init | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/package/mpd/files/mpd.conf b/package/mpd/files/mpd.conf index ee3565c15..cb5bc4c90 100644 --- a/package/mpd/files/mpd.conf +++ b/package/mpd/files/mpd.conf @@ -5,7 +5,7 @@ music_directory "/music" playlist_directory "/etc/mpd/playlists" state_file "/etc/mpd/state" db_file "/etc/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 8ff050b73..5c474eb13 100644 --- a/package/mpd/files/mpd.init +++ b/package/mpd/files/mpd.init @@ -21,6 +21,10 @@ start) mkdir -p /etc/mpd/playlists chown -R mpd:mpd /etc/mpd fi + if [ ! -d /var/run/mpd ];then + mkdir -p /var/run/mpd + chown -R mpd:mpd /var/run/mpd + fi mpd ;; stop) |