Top "Shutdown-hook" questions

A shutdown hook is simply an initialized but unstarted thread.

Useful example of a shutdown hook in Java?

I'm trying to make sure my Java application takes reasonable steps to be robust, and part of that involves shutting …

java shutdown-hook
Shutdown hook doesn't work in Eclipse

I have added a shutdown hook via: Runtime.getRuntime().addShutdownHook(myShutdownHook); It works fine normally, but not when I click …

java eclipse shutdown-hook
Run a script only at shutdown (not log off or restart) on Mac OS X

Is there any way to run a script only at shutdown? I mean, only when the computer is really shutting …

macos bash shell shutdown-hook system-shutdown
How does CTRL-C work with Java program

When I press ctrl-c in console in what sequence are application threads stopped and shutdown hooks called?

java console shutdown-hook
Windows shutdown hook on java application run from a bat script

I have a bat script which runs a java application. If I press ctrl+c on it, it the application …

java windows batch-file application-shutdown shutdown-hook
debug_backtrace() from registered shutdown function in PHP

While tinkering for an answer to this question, I found that debug_backtrace() doesn't trace beyond the function registered to …

php stack-trace shutdown-hook debug-backtrace
Node.JS Shutdown Hook

Is it possible to intercept the default kill signal and use it as a command for a graceful shutdown? This …

node.js solaris kill sigterm shutdown-hook
How netbeans stops a run?

I'm programming with Java in Linux using Netbeans 7 and as my program (sometimes) could not exit (not in this eon, …

java netbeans signals netbeans-7 shutdown-hook
Java -How to get logger to work in shutdown hook?

I have a specialized logger class which uses the java.util.logging.Logger class. I want to be able to …

java logging shutdown-hook