summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJuraj Linkeš <jlinkes@cisco.com>2017-10-13 12:31:45 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-10-13 12:31:45 +0000
commitdffcbbf326aa88d98b66a76abcd9a01c5d62bad0 (patch)
treefba24dfc72ea73c550149efea22bdd352a2134c1 /scripts
parenta11ef12edc19d755e0e03f2615a8a2019e805875 (diff)
parentb36ec3b6d738ca1797c8e276418649c4110f6ecf (diff)
Merge "Split odl restart into start and stop"
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/resource_cleanup.sh6
1 files 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