From f5bb9841549a023662bfcf7f85d634ca0012b48d Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Thu, 25 Dec 2014 00:00:36 +0900 Subject: tools route-server-docker.sh: wait for the container completion don't kill a container before it creates config files. Signed-off-by: FUJITA Tomonori --- tools/route-server/route-server-docker.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/route-server/route-server-docker.sh b/tools/route-server/route-server-docker.sh index ba525be0..1ce8fbe6 100755 --- a/tools/route-server/route-server-docker.sh +++ b/tools/route-server/route-server-docker.sh @@ -87,11 +87,12 @@ case "$1" in sudo docker pull osrg/gobgp sudo mkdir /usr/local/gobgp sudo docker run --privileged=true -v /usr/local/gobgp:/mnt --name gobgp -id osrg/gobgp go run /root/gobgp/tools/route-server/quagga-rsconfig.go -c /mnt - sudo docker rm -f gobgp + sudo docker wait gobgp + sudo docker rm gobgp ;; *) echo $1 - echo "Usage: root-server-docker {start|stop}" + echo "Usage: root-server-docker {start|stop|install}" exit 2 ;; esac -- cgit v1.2.3