From b47fc84f5d0ec01f103f99d8e4dcb27a24465de6 Mon Sep 17 00:00:00 2001 From: Manuel Traut Date: Sun, 3 Jun 2012 02:41:09 +0200 Subject: manager: add run.sh to ease start of manager - checks if a tao naming service is running - starts the tao naming service if needed - starts distrio_manager with corba parameters to resolve naming server Signed-off-by: Manuel Traut --- manager/run.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 manager/run.sh (limited to 'manager/run.sh') diff --git a/manager/run.sh b/manager/run.sh new file mode 100755 index 0000000..8162204 --- /dev/null +++ b/manager/run.sh @@ -0,0 +1,22 @@ +#!/bin/bash +# +# startup script for distrio manager +# +# checks if a naming service is running +# if not; a newone is started before distrio_manager +# +# author: Manuel Traut + +NS_PORT=12345 + +NS=`ps aux | grep tao_cosnaming | grep $NS_PORT` + +if [ -z "$NS" ]; then + echo start naming service + tao_cosnaming -ORBEndPoint iiop://localhost:$NS_PORT & + sleep 1 +fi + +LD_LIBRARY_PATH=../io:../common ./distrio_manager \ + -ORBInitRef NameService=corbaloc:iiop:localhost:12345/NameService \ + $@ -- cgit v1.2.3