Split odl restart into start and stop 27/44927/1
authorjuraj.linkes <jlinkes@cisco.com>
Thu, 12 Oct 2017 13:57:12 +0000 (15:57 +0200)
committerjuraj.linkes <jlinkes@cisco.com>
Thu, 12 Oct 2017 13:57:12 +0000 (15:57 +0200)
Change-Id: Ic75eeb2444e1b5744dbad590ec63d3467ee945c4
Signed-off-by: juraj.linkes <jlinkes@cisco.com>
scripts/resource_cleanup.sh

index 93d41c9..1f3388f 100755 (executable)
@@ -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