I have an app that is assembled via sbt and launched like this:
java -jar target/scala-2.10/evcat-assembly-0.0.1.jar
I can stop the process by hitting Ctrl-C, but I don't know whether that initiates a normal shutdown process or not. I'm wondering because in my destroy()
method I call (besides DB shutdown etc.) some logging routines, but nothing shows after I hit the keyboard.
So, is there a standard way to shutdown my app securely?