X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=boot%2Fdcae2_serv.sh;h=b81c57a45a2b5fde5abf9cc92c6f00661435fa3d;hb=f79590758d6cce11b10d9257af798c8f8bc10f1e;hp=bfd2ad18159cee7e5224ae7947702a26e840c71f;hpb=2c932329f5477040bc2c37b83d4e7d9f7e080137;p=demo.git diff --git a/boot/dcae2_serv.sh b/boot/dcae2_serv.sh index bfd2ad18..b81c57a4 100644 --- a/boot/dcae2_serv.sh +++ b/boot/dcae2_serv.sh @@ -41,7 +41,8 @@ get_pid() { } is_running() { - [ -f "$pid_file" ] && ps `get_pid` > /dev/null 2>&1 + #[ -f "$pid_file" ] && ps `get_pid` > /dev/null 2>&1 + [ ! -z $(docker ps | grep 'org.onap.dcaegen2.deployments.bootstrap') ] } case "$1" in @@ -67,6 +68,8 @@ case "$1" in if is_running; then echo -n "Stopping $name.." kill `get_pid` + CID=$(docker ps | grep 'org.onap.dcaegen2.deployments.bootstrap' | awk '{ print $1 }') + docker exec -it $CID ./teardown.sh for i in {1..10} do if ! is_running; then