Skip to content

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.

2 participants