summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-06-18 19:07:27 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-06-18 19:07:27 +0000
commit7778a642d468dff6225a85c0ab46d7a8b133d03a (patch)
tree08216fba99b17647195a977d8bcb86019f596c97
parentddc5faae446b38a1e57a26a3415502b9c5d09682 (diff)
downloadATCD-7778a642d468dff6225a85c0ab46d7a8b133d03a.tar.gz
use port 0, and use the -o and -p Naming_Service options
-rwxr-xr-xTAO/orbsvcs/tests/start_services29
1 files changed, 15 insertions, 14 deletions
diff --git a/TAO/orbsvcs/tests/start_services b/TAO/orbsvcs/tests/start_services
index 61ed9eace18..904f20fb299 100755
--- a/TAO/orbsvcs/tests/start_services
+++ b/TAO/orbsvcs/tests/start_services
@@ -28,9 +28,6 @@ else
login=`whoami`
fi
-#### Get the user id.
-uid=`id | sed 's/uid=\([0-9]\{1,\}\).*/\1/'`
-
#### Set TAO_ROOT, if it wasn't set.
if [ ! "$TAO_ROOT" ]; then
if [ "$ACE_ROOT" ]; then
@@ -46,6 +43,11 @@ trap "/bin/rm -f /tmp/pids$login" 0 1 2 3 15
echo // Killing the old services
+if [ -s /tmp/nameservicepid_$login ]; then
+ kill `cat /tmp/nameservicepid_$login`
+ /bin/rm /tmp/nameserviceior_$login /tmp/nameservicepid_$login
+fi
+
ps $ps_opts | grep Service | grep $login | grep -v grep | cut -c10-17 > /tmp/pids$login
if [ -s /tmp/pids$login ]; then
@@ -60,24 +62,23 @@ fi
echo // Initializing the log file
-if [ -r /tmp/logfile_$login ]; then
- rm /tmp/logfile_$login
-fi
-
echo // Logfile for the script "ss" which startes Name, Scheduling and Event Service > /tmp/logfile_$login
-nameserviceport=`expr 20023 + $uid`
-schedulerserviceport=`expr 60023 + $uid`
-eventserviceport=`expr 100023 + $uid`
+nameserviceport=0
+schedulerserviceport=0
+eventserviceport=0
cd $TAO_ROOT/orbsvcs/Naming_Service
-echo $ ./Naming_Service -ORBport $nameserviceport >> /tmp/logfile_$login
-./Naming_Service -ORBport $nameserviceport >> /tmp/logfile_$login 2>&1 &
+echo $ ./Naming_Service -ORBport $nameserviceport \
+ -o /tmp/nameserviceior_$login \
+ -p /tmp/nameservicepid_$login >> /tmp/logfile_$login
+./Naming_Service -ORBport $nameserviceport \
+ -o /tmp/nameserviceior_$login \
+ -p /tmp/nameservicepid_$login >> /tmp/logfile_$login 2>&1 &
sleep 1
-IOR=`perl -ne 'if (s/NameService IOR is <(.*)>/$1/) { print; last; }' \
- /tmp/logfile_$login`
+IOR=`cat /tmp/nameserviceior_$login`
echo // The IOR of the Naming Service: $IOR