This commit is contained in:
Brandon
2019-08-18 05:40:08 -05:00
parent 72e4bf9d01
commit b30b5ca3cd
2 changed files with 12 additions and 4 deletions

5
run.sh
View File

@@ -1,9 +1,10 @@
#!/bin/sh
function stop() {
kill $PID
kill $PID
}
trap stop HUP INT TERM
su-exec mopidy mopidy --config "/data/config/mopidy.conf" "${@}" &
su-exec mopidy mopidy --config "${MOPIDY_CONFIG_FILE}" "${@}" &
PID=$!
wait $PID