mirror of
https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git
synced 2024-11-21 21:30:11 +00:00
Allow overriding the Prometheus port
This commit is contained in:
parent
f941be563f
commit
82216d49f7
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ if chk_enabled "$PROMETHEUS_ENABLE"; then
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
trap "pkill -P $$ || true; s6wrap --timestamps --prepend=prometheus-readsb --quiet --args echo 'service stopping'; exit 0" SIGTERM SIGINT SIGHUP SIGQUIT
|
trap "pkill -P $$ || true; s6wrap --timestamps --prepend=prometheus-readsb --quiet --args echo 'service stopping'; exit 0" SIGTERM SIGINT SIGHUP SIGQUIT
|
||||||
echo -e "HTTP/1.1 200 OK\nContent-Type: text/plain\n\n$(cat /run/readsb-prometheus.prom)" | ncat -l 9274 > /dev/null 2>&1 &
|
echo -e "HTTP/1.1 200 OK\nContent-Type: text/plain\n\n$(cat /run/readsb-prometheus.prom)" | ncat -l "${PROMETHEUSPORT:-9274}" > /dev/null 2>&1 &
|
||||||
wait
|
wait
|
||||||
else
|
else
|
||||||
exec sleep infinity
|
exec sleep infinity
|
||||||
|
|
Loading…
Reference in a new issue