Spring PreDestroy not firing after being killed on Debian 10
I have a simple Spring application that needs to save state to some files after being killed, but calling kill [PID]
on Debian 10 will not trigger the @PreDestroy
method I have registered. Here’s my state class and main class: