summaryrefslogtreecommitdiff
path: root/manager/bin/run.sh
blob: 0bbe4c7fe3dfab1ddcbf59e0e70e343161e2e03c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 <manut@mecka.net>

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=$LD_LIBRARY_PATH:../../io/lib:../../common ./distrio_manager \
	-ORBInitRef NameService=corbaloc:iiop:localhost:12345/NameService \
	$@