From f4cbe9f519e2f0de335bfccfbba37915b3bba8e1 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Mon, 17 Jul 2017 15:03:50 +0200 Subject: [PATCH] BUG-8143: issue a JVM restart Instead of just restarting the OSGi framework, instruct karaf to re-execute the JVM. Change-Id: I10709f61b71d578e4677a5948c23e38f9871c6a1 Signed-off-by: Robert Varga --- .../actor_system_provider/impl/ActorSystemProviderImpl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/config/yang/config/actor_system_provider/impl/ActorSystemProviderImpl.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/config/yang/config/actor_system_provider/impl/ActorSystemProviderImpl.java index 95c37f56ad..5b6e447d0b 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/config/yang/config/actor_system_provider/impl/ActorSystemProviderImpl.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/config/yang/config/actor_system_provider/impl/ActorSystemProviderImpl.java @@ -56,10 +56,9 @@ public class ActorSystemProviderImpl implements ActorSystemProvider, AutoCloseab 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 -- 2.36.6