mirror of
https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git
synced 2024-11-25 15:20:10 +00:00
Make startup smoother
This commit is contained in:
parent
ef95e1eff5
commit
34859e6158
1 changed files with 18 additions and 16 deletions
|
@ -63,11 +63,12 @@ do
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
if (( mlat_result_sources == 0 ))
|
# the following is no longer reliable as mlat sources can be external
|
||||||
then
|
#if (( mlat_result_sources == 0 ))
|
||||||
"${s6wrap[@]}" --args echo "No MLAT servers have been defined in MLAT_CONFIG - no need to start MLATHUB"
|
#then
|
||||||
exec sleep infinity
|
# "${s6wrap[@]}" --args echo "No MLAT servers have been defined in MLAT_CONFIG - no need to start MLATHUB"
|
||||||
fi
|
# exec sleep infinity
|
||||||
|
#fi
|
||||||
|
|
||||||
# Add any additional net_connectors:
|
# Add any additional net_connectors:
|
||||||
if [[ -n "$MLATHUB_NET_CONNECTOR" ]]; then
|
if [[ -n "$MLATHUB_NET_CONNECTOR" ]]; then
|
||||||
|
@ -113,17 +114,18 @@ fi
|
||||||
# Handle "--net-heartbeat=<rate>"
|
# Handle "--net-heartbeat=<rate>"
|
||||||
MLATHUB_CMD+=("--net-heartbeat=${READSB_NET_HEARTBEAT:-35}")
|
MLATHUB_CMD+=("--net-heartbeat=${READSB_NET_HEARTBEAT:-35}")
|
||||||
|
|
||||||
if [[ ! -f /run/mlathub_up ]]
|
# No longer any need to wait, we can start up immediate
|
||||||
then
|
#if [[ ! -f /run/mlathub_up ]]
|
||||||
if [[ -z "${LOGLEVEL}" ]] || [[ "${LOGLEVEL,,}" == "verbose" ]]; then
|
#then
|
||||||
"${s6wrap[@]}" --args echo "Delaying MLAT hub start until container is established..."
|
# if [[ -z "${LOGLEVEL}" ]] || [[ "${LOGLEVEL,,}" == "verbose" ]]; then
|
||||||
fi
|
# "${s6wrap[@]}" --args echo "Delaying MLAT hub start until container is established..."
|
||||||
while [[ ! -f /run/mlathub_up ]]
|
# fi
|
||||||
do
|
# while [[ ! -f /run/mlathub_up ]]
|
||||||
sleep 2
|
# do
|
||||||
done
|
# sleep 2
|
||||||
fi
|
# done
|
||||||
sleep 5 # sleep a bit so everything is well established
|
#fi
|
||||||
|
#sleep 5 # sleep a bit so everything is well established
|
||||||
|
|
||||||
"${s6wrap[@]}" --args echo "Starting MLATHUB..."
|
"${s6wrap[@]}" --args echo "Starting MLATHUB..."
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue