Skip to content

Commit

Permalink
fix wait / service logic
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf committed May 9, 2024
1 parent 405dafa commit 324ad10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rootfs/etc/s6-overlay/scripts/airspy_adsb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 324ad10

Please sign in to comment.