From eb10ac0e97c1e5e98ce73a1966c97a7cedb9d086 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 1 Dec 2009 19:40:13 +0100 Subject: 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 --- package/mpd/files/mpd.conf | 1 + package/mpd/files/mpd.init | 4 ++++ package/mpd/files/mpd.postinst | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) (limited to 'package/mpd') 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 -- cgit v1.2.3