From 6f6587f8a6d5f99fc234f9bccf9411aa6a7b12fc Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Thu, 14 Mar 2024 14:11:52 +0100 Subject: [PATCH] allow user to customise mlat-client startup stagger delay --- README.md | 1 + rootfs/etc/s6-overlay/scripts/mlat-client | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 95b8aab..7e3cbf8 100644 --- a/README.md +++ b/README.md @@ -203,6 +203,7 @@ The following parameters must be set (mandatory) for the container to function: | `READSB_EXTRA_ARGS` | Optional, allows to specify extra parameters for readsb | | Unset | | `S6_SERVICES_GRACETIME` | Optional, set to 30000 when saving traces / globe_history | | `3000` | | `LOGLEVEL` | `verbose` (all messages), `error` (errors only), `none` (minimal) | | `verbose` | +| `MLAT_STARTUP_STAGGER` | mlat-client startup staggering for tidy logs (reduce for quicker startup) | | `15` | `READSB_EXTRA_ARGS` just passes arguments to the commandline, you can check this file for more options for wiedehopf's readsb fork: diff --git a/rootfs/etc/s6-overlay/scripts/mlat-client b/rootfs/etc/s6-overlay/scripts/mlat-client index 79a4c52..96ae611 100755 --- a/rootfs/etc/s6-overlay/scripts/mlat-client +++ b/rootfs/etc/s6-overlay/scripts/mlat-client @@ -205,7 +205,7 @@ do # stagger by 15 second so they don't all start at the same time - sleep 15 & wait $! + sleep "${MLAT_STARTUP_STAGGER:-15}" & wait $! # ------------------------------------------------ # run this Mlat_client instance in the background: