mirror of
https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git
synced 2024-11-23 14:20:10 +00:00
readsb: avoid restarts which are too fast (#124)
start instantly on first start though
This commit is contained in:
commit
95761dcce8
1 changed files with 6 additions and 0 deletions
|
@ -364,6 +364,12 @@ if chk_enabled "$PROMETHEUS_ENABLE"; then
|
|||
READSB_CMD+=("--write-prom=/run/readsb-prometheus.prom")
|
||||
fi
|
||||
|
||||
# wait 15 seconds if this is not the first startup
|
||||
if [[ $(s6-svdt /run/service/readsb | wc -l) != 0 ]]; then
|
||||
"${s6wrap[@]}" --args echo "delaying restart by 15 seconds"
|
||||
sleep 15
|
||||
fi
|
||||
|
||||
# shellcheck disable=SC2086
|
||||
if [[ "${LOGLEVEL,,}" == "verbose" ]]; then
|
||||
exec "${s6wrap[@]}" --args "${READSB_BIN}" "${READSB_CMD[@]}" $READSB_AUTOMATION_ARGS $READSB_EXTRA_ARGS
|
||||
|
|
Loading…
Reference in a new issue