Skip to content

Conversation

@mishaschwartz
Copy link
Collaborator

Previously, the extension scripts created by the Dockerfile would run the log parser code as a subprocess of the main process (PID 1 in the container).

This meant that when the container was stopped, a SIGTERM would be sent to PID 1 which would be killed but the signal would not be passed on to the actual log parser code. This would mean that the log parser code would keep running until the container itself was killed with a SIGKILL.

This changes the extension script to use exec so that the log parser code runs in the main process (PID 1 in the container) so that it can be stopped by a SIGTERM as expected.

@mishaschwartz mishaschwartz merged commit 7a92827 into main Nov 17, 2025
3 checks passed
@mishaschwartz mishaschwartz deleted the fix-dockerfile branch November 17, 2025 14:22
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.

3 participants