-
Notifications
You must be signed in to change notification settings - Fork 444
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
application does not receive SIGINT signal when using ash. #707
Comments
ash has some pbs: sbt/sbt-native-packager#707
I'm not familiar with |
I am going to send a PR for this, I actually worked around this for our images (we need the SIGINT for Kubernetes). I will try to wrap it into a proper fix. |
Actually, this is already fixed in > 1.1.5. The issue was that the ash script somehow had its For reference, I previously worked around this by providing my custom script as suggested in the Scaladoc for |
Thanks @NeQuissimus 😃 |
@muuki88 Just going through the docker-labelled tickets to see what could bite me in the future since my company is using |
Smart move 😎 |
When using
bash
, a kill of one application sends the SIGINT to it, triggering the shutdown hooks.When using
ash
withenablePlugins(AshScriptPlugin)
, the application does not receive the SIGINT. It has no way to cleanly shutdown. Only the SIGTERM kills the application, without triggering the shutdown hooks.Docker for example send the SIGINT signal, waits 10 s, and then sends the SIGTERM signal. Packaging the application with
enablePlugins(AshScriptPlugin)
makes each shutdown waiting 10s.The text was updated successfully, but these errors were encountered: