diff --git a/rootfs/etc/services.d/mlathub/run b/rootfs/etc/services.d/mlathub/run index 69376a5..074135e 100644 --- a/rootfs/etc/services.d/mlathub/run +++ b/rootfs/etc/services.d/mlathub/run @@ -96,9 +96,8 @@ if [[ -n "$READSB_NET_CONNECTOR_DELAY" ]]; then fi # Handle "--net-heartbeat=" -if [[ -n "${READSB_NET_HEARTBEAT:-30}" ]]; then - MLATHUB_CMD+=("--net-heartbeat=$READSB_NET_HEARTBEAT") -fi +MLATHUB_CMD+=("--net-heartbeat=${READSB_NET_HEARTBEAT:-30}") + if (( $(ps -o etimes= -p 1) < 30 )) then diff --git a/rootfs/etc/services.d/readsb/run b/rootfs/etc/services.d/readsb/run index 0868703..eaf3ee7 100644 --- a/rootfs/etc/services.d/readsb/run +++ b/rootfs/etc/services.d/readsb/run @@ -173,9 +173,7 @@ if [[ -n "$READSB_NET_CONNECTOR_DELAY" ]]; then fi # Handle "--net-heartbeat=" -if [[ -n "$READSB_NET_HEARTBEAT" ]]; then - READSB_CMD+=("--net-heartbeat=$READSB_NET_HEARTBEAT") -fi +READSB_CMD+=("--net-heartbeat=${READSB_NET_HEARTBEAT:-30}") # Handle "--net-ri-port=" if [[ -n "$READSB_NET_RAW_INPUT_PORT" ]]; then