I'd like to stop it correctly (= stop OSGi framework with system bundle stop)
I've found several ways how to do it: 1. with equinox console (telnet) - call "close" or "stop 0" commands
2. with OSGi Enterprise JMX API - install JMX Impl, connect with JMX client and shut down the framework 3. kill process. Bundles are not stopped correctly
Questions: 1. Is it possible to configure eclipse launcher to activate or insert a shutdown hook to stop bundles correctly on Ctrl+C or KILL?
2. Are there any other ways to stop the framework correctly?