diff options
author | Juraj Linkeš <jlinkes@cisco.com> | 2017-10-13 12:31:45 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-10-13 12:31:45 +0000 |
commit | dffcbbf326aa88d98b66a76abcd9a01c5d62bad0 (patch) | |
tree | fba24dfc72ea73c550149efea22bdd352a2134c1 | |
parent | a11ef12edc19d755e0e03f2615a8a2019e805875 (diff) | |
parent | b36ec3b6d738ca1797c8e276418649c4110f6ecf (diff) |
Merge "Split odl restart into start and stop"
-rwxr-xr-x | scripts/resource_cleanup.sh | 6 |
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 |