diff options
Diffstat (limited to 'TAO/tests/Quoter/ss')
-rwxr-xr-x | TAO/tests/Quoter/ss | 98 |
1 files changed, 0 insertions, 98 deletions
diff --git a/TAO/tests/Quoter/ss b/TAO/tests/Quoter/ss deleted file mode 100755 index 7502968bc4c..00000000000 --- a/TAO/tests/Quoter/ss +++ /dev/null @@ -1,98 +0,0 @@ -#!/bin/ksh -# $Id$ - -# =TITLE -# Restart script -# -# =AUTHOR -# Michael Kircher (mk1@cs.wustl.edu) -# -# =DESCRIPTION -# This script restarts the Naming, Scheduling and Event Service, -# if "clean" is specified as a parameter, then the old -# services are only killed and not restarted - -# save the old working dir -old_dir=$cwd -# get the user name -login=`whoami` -# get the user id -uid=`id | cut -c5-20 | cut -f1 -d"("` - -#### Set TAO_ROOT, if it wasn't set. -if [ ! "$TAO_ROOT" ]; then - if [ "$ACE_ROOT" ]; then - TAO_ROOT=$ACE_ROOT/TAO - else - echo $0: you must set ACE_ROOT or TAO_ROOT! - exit 1 - fi -fi - -echo // Killing the old services - -ps -ef | grep ORBnameserviceior | grep $login | grep -v grep | cut -c10-17 > /tmp/pids$login - -if [ -s /tmp/pids$login ]; then - pids=`cat /tmp/pids$login` - kill $pids -fi - -# stop here if "ss clean" was called -if [ $1 ]; then - if [ $1 = "clean" ]; then - exit - fi -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` -serverport=`expr 60023 + $uid` -factoryfinderport=`expr 100023 + $uid` -genericfactoryport=`expr 110023 + $uid` -clientport=`expr 90023 + $uid` - -cd $TAO_ROOT/orbsvcs/Naming_Service -./Naming_Service -ORBport $nameserviceport -ORBobjrefstyle URL>> /tmp/logfile_$login 2>&1 & - -sleep 2 - -IOR=`cat /tmp/logfile_$login | grep iiop | cut -c22-300 | cut -f1 -d">" ` - -echo // The IOR of the Naming Service: $IOR - -echo // Started Naming Service on port $nameserviceport - -cd $TAO_ROOT/tests/Quoter -./server -ORBnameserviceior $IOR -ORBport $serverport >> /tmp/logfile_$login 2>&1 & - -sleep 2 - -echo // Started server on port $serverport - -./Factory_Finder -ORBnameserviceior $IOR -ORBport $factoryfinderport >> /tmp/logfile_$login 2>&1 & - -sleep 2 - -echo // Started Factory Finder on port $factoryfinderport - -./Generic_Factory -ORBnameserviceior $IOR -ORBport $genericfactoryport >> /tmp/logfile_$login 2>&1 & - -echo // Started Generic Factory on port $genericfactoryport - -echo "// Enjoy the use ;-)" -echo call the client: -echo .. -ps -ef | grep mk1 | grep ORBnameserviceior -echo .. -echo .. -./client -ORBnameserviceior $IOR -ORBport $clientport - -cd $old_dir |