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

Use exec on scrutiny-collector cron to ensure signal handling #597

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

joserebelo
Copy link
Contributor

@joserebelo joserebelo commented Mar 9, 2024

Bash ignores the sigterm while the cron child process is running, so when stopping the container, it would stay for 10 seconds until killed. Using exec fixes this and cron / the container now terminates gracefully.

This way SIGTERM gets propagated and the container terminates
gracefully.
@AnalogJ AnalogJ merged commit 3490a2f into AnalogJ:master Mar 13, 2024
@joserebelo joserebelo deleted the sigterm branch March 16, 2024 22:12
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