aboutsummaryrefslogtreecommitdiffstats
path: root/boot/dcae2_serv.sh
diff options
context:
space:
mode:
Diffstat (limited to 'boot/dcae2_serv.sh')
-rw-r--r--boot/dcae2_serv.sh5
1 files changed, 4 insertions, 1 deletions
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