summaryrefslogtreecommitdiffstats
path: root/scripts/resource_cleanup.sh
diff options
context:
space:
mode:
authorjuraj.linkes <jlinkes@cisco.com>2017-10-12 15:57:12 +0200
committerjuraj.linkes <jlinkes@cisco.com>2017-10-12 15:57:12 +0200
commitb36ec3b6d738ca1797c8e276418649c4110f6ecf (patch)
treef1d55b3b30268e82805b62597f57b8015030d8bd /scripts/resource_cleanup.sh
parentf20af6726aef99f3a1fcdc63068fe9f8b89e3479 (diff)
Split odl restart into start and stop
Change-Id: Ic75eeb2444e1b5744dbad590ec63d3467ee945c4 Signed-off-by: juraj.linkes <jlinkes@cisco.com>
Diffstat (limited to 'scripts/resource_cleanup.sh')
-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