Improve node deployment
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / internal / kernel / Activator.java
index a70235976ee8c34b1ba4d7891b2e1b1a3dc4835c..1efc9dc66474953221194974c0044558e163514b 100644 (file)
@@ -49,6 +49,7 @@ public class Activator implements BundleActivator {
 
        @Override
        public void start(BundleContext bundleContext) throws Exception {
+               Runtime.getRuntime().addShutdownHook(new CmsShutdown());
                instance = this;
                this.bc = bundleContext;
                this.logReaderService = getService(LogReaderService.class);