From b36ec3b6d738ca1797c8e276418649c4110f6ecf Mon Sep 17 00:00:00 2001 From: "juraj.linkes" Date: Thu, 12 Oct 2017 15:57:12 +0200 Subject: Split odl restart into start and stop Change-Id: Ic75eeb2444e1b5744dbad590ec63d3467ee945c4 Signed-off-by: juraj.linkes --- scripts/resource_cleanup.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/resource_cleanup.sh b/scripts/resource_cleanup.sh index 93d41c9..1f3388f 100755 --- a/scripts/resource_cleanup.sh +++ b/scripts/resource_cleanup.sh @@ -165,10 +165,12 @@ clean_overcloud_resource() { then echo "$HOSTNAME: found running odl, cleaning up" ODL_DIR=/opt/opendaylight + echo "$HOSTNAME: stopping odl" + service opendaylight stop &> /dev/null rm -rf $ODL_DIR/data/ $ODL_DIR/journal/ $ODL_DIR/snapshots/ \ $ODL_DIR/instances/ $ODL_DIR/cache/ - echo "$HOSTNAME: restarting odl" - service opendaylight restart &> /dev/null + echo "$HOSTNAME: starting odl" + service opendaylight start &> /dev/null ODL_RESTARTED=True else case $(ps aux | grep karaf | grep -c -v grep) in -- cgit 1.2.3-korg