From 324ad10d14b50ca3aa8229ed53f8353c024b03c0 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Thu, 9 May 2024 18:11:16 +0200 Subject: [PATCH] fix wait / service logic --- rootfs/etc/s6-overlay/scripts/airspy_adsb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rootfs/etc/s6-overlay/scripts/airspy_adsb b/rootfs/etc/s6-overlay/scripts/airspy_adsb index c461876..30d15ff 100755 --- a/rootfs/etc/s6-overlay/scripts/airspy_adsb +++ b/rootfs/etc/s6-overlay/scripts/airspy_adsb @@ -173,4 +173,5 @@ sleep 10 & "${s6wrap[@]}" "${AIRSPY_ADSB_BIN}" "${AIRSPY_ADSB_CMD[@]}" & # trap will only work properly while the shell is running / waiting, not while another program is being foreground executed -wait || true +# the first wait exits due to the signal which is trapped, the 2nd wait actually waits for collectd to exit +wait || wait || true