diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2013-10-16 18:19:45 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2013-10-16 18:19:45 +0200 |
commit | 3b843e670ec63dbd923c6fee0f8ccb12eea4f3e4 (patch) | |
tree | ca7401920c9236f539fd8817d24edc02e56e5eaa /package | |
parent | 29fcf823c3a97b1bb7074b0ca685547582216e0c (diff) |
fix idiotic commit, mpd runs as mpd user
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) |