docker-headphones/root/etc/s6-overlay/s6-rc.d/svc-headphones/run
2023-02-23 11:55:55 +00:00

9 lines
307 B
Text
Executable file

#!/usr/bin/with-contenv bash
# shellcheck shell=bash
PORT=$(grep "http_port" '/config/config.ini' | awk -F '=' '{print $2}' | tr -d ' ')
exec \
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost ${PORT}" \
s6-setuidgid abc python3 /app/headphones/Headphones.py \
--datadir=/config