I have service , it manages all of Spring boot app coected to it. All app is started by local service of Ubuntu (can get PID). What action is perfectest for terminate any app.
Case 1: Terminate by
SpringApplication.exit(applicationContext);
Case 2: Shutdown by kill pid
with Case 1 : Some resource is holding and terminate is very slow (@Scheduled is issue) Case 2: Very fast but i don't know some issue can happen. Some suggestion for me
