playframework - How to safely shutdown a Play Framework app -


i want sure request threads have finished processing before play app exits, have 2 questions:

1) signal can send invoke global onstop method? i've used ctrl-d running activator on command line while developing, when deployed, app started , stopped script wants send kill signal stop it. i've tried different signals, none have called onstop. there way?

2) when onstop called, want verify there no request threads running , wait on are. best way this?

thanks!


Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -