1
0
Fork 0
mirror of https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git synced 2024-11-21 21:30:11 +00:00

Make startup smoother

This commit is contained in:
kx1t 2024-03-29 17:49:15 -04:00 committed by GitHub
parent ef95e1eff5
commit 34859e6158
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -63,11 +63,12 @@ do
done
done
if (( mlat_result_sources == 0 ))
then
"${s6wrap[@]}" --args echo "No MLAT servers have been defined in MLAT_CONFIG - no need to start MLATHUB"
exec sleep infinity
fi
# the following is no longer reliable as mlat sources can be external
#if (( mlat_result_sources == 0 ))
#then
# "${s6wrap[@]}" --args echo "No MLAT servers have been defined in MLAT_CONFIG - no need to start MLATHUB"
# exec sleep infinity
#fi
# Add any additional net_connectors:
if [[ -n "$MLATHUB_NET_CONNECTOR" ]]; then
@ -113,17 +114,18 @@ fi
# Handle "--net-heartbeat=<rate>"
MLATHUB_CMD+=("--net-heartbeat=${READSB_NET_HEARTBEAT:-35}")
if [[ ! -f /run/mlathub_up ]]
then
if [[ -z "${LOGLEVEL}" ]] || [[ "${LOGLEVEL,,}" == "verbose" ]]; then
"${s6wrap[@]}" --args echo "Delaying MLAT hub start until container is established..."
fi
while [[ ! -f /run/mlathub_up ]]
do
sleep 2
done
fi
sleep 5 # sleep a bit so everything is well established
# No longer any need to wait, we can start up immediate
#if [[ ! -f /run/mlathub_up ]]
#then
# if [[ -z "${LOGLEVEL}" ]] || [[ "${LOGLEVEL,,}" == "verbose" ]]; then
# "${s6wrap[@]}" --args echo "Delaying MLAT hub start until container is established..."
# fi
# while [[ ! -f /run/mlathub_up ]]
# do
# sleep 2
# done
#fi
#sleep 5 # sleep a bit so everything is well established
"${s6wrap[@]}" --args echo "Starting MLATHUB..."