title: Is there any way we can execute some java code when a jvm process is killed?
body: <p>We want to execute some java code or shell code before a JVM exits when it is killed manually. Our application is not running in a container. We need to monitor it automatically using the Java code itself or some command line tool.</p>