🗃️ Committing everything that changed 🗃️

This commit is contained in:
casjay
2022-09-10 16:38:37 -04:00
parent 8f867d8245
commit 0f0da7e6bb
2 changed files with 4 additions and 2 deletions

View File

@@ -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