I have an init.d process that absolutely requires a clean shutdown. (It's not as "absolute" as the term suggests, but that's past the point. I WANT the process to shutdown cleeanly because recovering takes more time than just waiting for the clean shutdown.)
However, after a couple of days it always happens that seemingly, the stop() call to the init.d script simply does not happen. I've added echo>> to the script and the output simply doesn't appear in the file system if and when the failure occurs.
K5 at runlevels 0 1 6 and S95 at the others (all pretty standard and the numbers ensure the stop() for this process must be one of the first to be fired. The service is java so the os process is a JVM.
How can I inspect what is actually going on in the shutdown process in order to diagnose the problem ?
However, after a couple of days it always happens that seemingly, the stop() call to the init.d script simply does not happen. I've added echo>> to the script and the output simply doesn't appear in the file system if and when the failure occurs.
K5 at runlevels 0 1 6 and S95 at the others (all pretty standard and the numbers ensure the stop() for this process must be one of the first to be fired. The service is java so the os process is a JVM.
How can I inspect what is actually going on in the shutdown process in order to diagnose the problem ?
Comment