Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix airspy_adsb service not stopping correctly #23

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

wiedehopf
Copy link
Contributor

The 'trap ... pkill ...' in the service script doesn't work, making s6 wait for the service indefinitely. This in turn runs into the 10 second docker stop / compose down timeout which will send a SIGKILL to the whole container leading to ungraceful termination.

The trap will only work when there is no foreground program being executed by the shell, it does work however during a wait.

Start airspy_adsb in the background and issue wait. Run the sleep delay in the background as well so we don't need to wait for it when the trap pkill happens. Should airspy_adsb error, the wait should limit program starts to every 10 seconds.

The 'trap ... pkill ...' in the service script doesn't work, making s6
wait for the service indefinitely.  This in turn runs into the 10 second
docker stop / compose down timeout which will send a SIGKILL to the
whole container leading to ungraceful termination.

The trap will only work when there is no foreground program being
executed by the shell, it does work however during a wait.

Start airspy_adsb in the background and issue wait.
Run the sleep delay in the background as well so we don't need to wait
for it when the trap pkill happens. Should airspy_adsb error, the wait
should limit program starts to every 10 seconds.
@fredclausen fredclausen merged commit 36cb5f0 into sdr-enthusiasts:main Mar 21, 2024
3 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants