From: juraj.linkes Date: Thu, 12 Oct 2017 13:57:12 +0000 (+0200) Subject: Split odl restart into start and stop X-Git-Tag: opnfv-6.1.0~7^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=b36ec3b6d738ca1797c8e276418649c4110f6ecf;p=fds.git Split odl restart into start and stop Change-Id: Ic75eeb2444e1b5744dbad590ec63d3467ee945c4 Signed-off-by: juraj.linkes --- 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