mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
mpd: Add procd mdns definition from MPD config file
Signed-off-by: Ted Hess <thess@kitschensync.net>
This commit is contained in:
@@ -18,7 +18,11 @@ start_service() {
|
||||
mkdir -m 0755 -p $pld
|
||||
fi
|
||||
|
||||
local lport=`grep ^port "$CONFIGFILE" | cut -d "\"" -f 2`
|
||||
[ -z $lport ] && lport=6600
|
||||
|
||||
procd_open_instance
|
||||
procd_add_mdns "mpd" "tcp" "$lport"
|
||||
procd_set_param command "$PROG" --no-daemon "$CONFIGFILE"
|
||||
# Give MPD some real-time priority
|
||||
procd_set_param nice "$NICEPRIO"
|
||||
|
||||
Reference in New Issue
Block a user