-
Notifications
You must be signed in to change notification settings - Fork 506
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
Using tini with java process #134
Comments
Can you share your entrypoint code? You probably want something like this instead to make sure the bash process doesn't stick around to receive (and essentially blackhole) the signals Tini forwards: exec java -jar xxx.jar |
Smth like this:
I tried |
Thanks. That's not going to work right now with Tini, but there is a fork that allows for post-processing commands, have a look at that: #129 I haven't had time to figure out whether this makes sense to incorporate in Tini and to do so, so you'll have to build this yourself, but I think that's what you need here. |
Alternatively, you might want to try passing |
I went with this kind of solution: https://stackoverflow.com/a/29890106/1003113 |
Hi,
I made my entrypoint such:
Now the entrypoint invokes a Java process:
java
process cannot be killed by killing the container using Ctrl+C, and addingtini
toENTRYPOINT
does not make any difference.Can tini help in this situation or do I need another solution?
Help is appreciated.
The text was updated successfully, but these errors were encountered: