[equinox-dev] How to stop/kill Equinox/Eclipse launcher instance correctly
Hello All, I run equinox with eclipse launcher on linux. 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? Thank you in advance. Best regards, Dmytro Pishchukhin ___ equinox-dev mailing list equinox-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/equinox-dev
Re: [equinox-dev] How to stop/kill Equinox/Eclipse launcher instance correctly
There currently is no way to configure the launcher to add a shutdown hook to stop the framework properly on Ctrl-C or KILL. I suspect you could add your own shutdown hook from one of your bundles to do this though. There are complications when trying to execute long running operations in shutdown hooks. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=46381 for some discussion on this topic. Tom | | From: | | --| |Dmytro Pishchukhin dmytro.pishchuk...@gmail.com | --| | | To:| | --| |equinox-dev@eclipse.org | --| | | Date: | | --| |05/24/2011 07:39 AM | --| | | Subject: | | --| |[equinox-dev] How to stop/kill Equinox/Eclipse launcher instance correctly | --| Hello All, I run equinox with eclipse launcher on linux. 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? Thank you in advance. Best regards, Dmytro Pishchukhin___ equinox-dev mailing list equinox-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/equinox-dev inline: graycol.gifinline: ecblank.gif___ equinox-dev mailing list equinox-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/equinox-dev