Instead of just restarting the OSGi framework, instruct karaf to
re-execute the JVM.
Change-Id: I10709f61b71d578e4677a5948c23e38f9871c6a1
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
actorSystem.actorOf(QuarantinedMonitorActor.props(() -> {
// restart the entire karaf container
LOG.warn("Restarting karaf container");
- System.setProperty("karaf.restart", "true");
+ System.setProperty("karaf.restart.jvm", "true");
bundleContext.getBundle(0).stop();
}), QuarantinedMonitorActor.ADDRESS);
-
}
@Override