Skip to content

add graceful shutdown for docker #2126

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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

stiwa-maha
Copy link

@stiwa-maha stiwa-maha commented Mar 24, 2025

Execute java process with PID=1 through replacing the existing process with the java process. This is required for docker based execution since docker forwards SIGINT to the process with PID=1. In case the process cannot handle it (which was the case prior to this PR), the signal is ignored and docker forcefully kills the container after a certain grace period leading to an exit code of 137.

This PR fixes: #2146

Execute java process with PID=1 through replacing the existing process with the java process. This is required for docker based execution as docker forwards SIGINT to the process with PID=1. In case the process cannot handle it, the signal is ignored and docker forcefully kills the container after a certain grace period leading to an exit code of 137.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

Successfully merging this pull request may close these issues.

AKHQ docker container - exit code 137
1 participant