summaryrefslogtreecommitdiff
path: root/package/mpd
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-12-01 19:40:13 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2009-12-01 19:40:13 +0100
commiteb10ac0e97c1e5e98ce73a1966c97a7cedb9d086 (patch)
treef25892b4f15ef322487a2b00d674c255d148539c /package/mpd
parentb3a54c520195f3cab1109cb90de8179e4dff433f (diff)
use pkill for startup scripts
- seems to solve the issue, that the same init script get killed otherwise - fine tune dansguardian, squid and iptables package - add default firewall config file (from freewrt) - add an example for transparent proxy via an ethernet bridge
Diffstat (limited to 'package/mpd')
-rw-r--r--package/mpd/files/mpd.conf1
-rw-r--r--package/mpd/files/mpd.init4
-rw-r--r--package/mpd/files/mpd.postinst2
3 files changed, 6 insertions, 1 deletions
diff --git a/package/mpd/files/mpd.conf b/package/mpd/files/mpd.conf
index 4e3725119..10b1e6918 100644
--- a/package/mpd/files/mpd.conf
+++ b/package/mpd/files/mpd.conf
@@ -3,6 +3,7 @@ user "mpd"
music_directory "~/music"
playlist_directory "~/.mpd/playlists"
db_file "~/.mpd/database"
+pid_file "/var/run/mpd/mpd.pid"
log_file "~/.mpd/log"
error_file "~/.mpd/error-log"
# An example of an ALSA output
diff --git a/package/mpd/files/mpd.init b/package/mpd/files/mpd.init
index 97b883a11..29482b365 100644
--- a/package/mpd/files/mpd.init
+++ b/package/mpd/files/mpd.init
@@ -17,6 +17,10 @@ start)
echo "mpd user must be in group audio."
exit 1
fi
+ if [ ! -d /var/run/mpd ];then
+ mkdir -p /var/run/mpd
+ chown mpd:mpd /var/run/mpd
+ fi
mpd
;;
stop)
diff --git a/package/mpd/files/mpd.postinst b/package/mpd/files/mpd.postinst
index 361adeec0..957d973cb 100644
--- a/package/mpd/files/mpd.postinst
+++ b/package/mpd/files/mpd.postinst
@@ -2,5 +2,5 @@
. $IPKG_INSTROOT/etc/functions.sh
gid=$(get_next_gid)
add_group mpd $gid
-add_user mpd $(get_next_uid) $gid /mnt
+add_user mpd $(get_next_uid) $gid /mnt/media
add_rcconf mpd