From 0f0da7e6bb25e4c651206270c622d916c8a5a0bc Mon Sep 17 00:00:00 2001 From: casjay Date: Sat, 10 Sep 2022 16:38:37 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/entrypoint-music.sh | 4 +++- config/mpd/mpd.conf | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/entrypoint-music.sh b/bin/entrypoint-music.sh index c6ff83a..f96f324 100755 --- a/bin/entrypoint-music.sh +++ b/bin/entrypoint-music.sh @@ -48,7 +48,9 @@ __exec_bash() { } # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - __start() { - pgrep mpd &>/dev/null || mpd /config/mpd/mpd.conf + if ! pgrep mpd &>/dev/null; then + mpd --stderr --no-daemon --verbose /config/mpd/mpd.conf &>/data/mpd/mpd.debug & + fi sleep 10 if pgrep mpd &>/dev/null; then mpc status 2>&1 | grep -q 'playing' || mpc play &>/dev/null diff --git a/config/mpd/mpd.conf b/config/mpd/mpd.conf index 77e0d3f..394e5f4 100644 --- a/config/mpd/mpd.conf +++ b/config/mpd/mpd.conf @@ -6,7 +6,7 @@ pid_file "/data/mpd/mpd.pid" db_file "/data/mpd/cache.db" state_file "/data/mpd/state.txt" sticker_file "/data/mpd/sticker.sql" -user "mpd" +user "root" bind_to_address "0.0.0.0" port "6600" log_level "default"