# Installation of Naming Service:

. ./Scripts/SetEnvironment

# Start NamingService
echo "Waiting for NamingService to start up... "
rm -f $NSSERV_REF
$JAVA -classpath $CLASSPATH com.ooc.CosNaming.Server --ior > $NSSERV_REF &

trap deactivate 1 2 3 4 5 6 7 8 10 12 13 14 15
count=0
while test ! -s $NSSERV_REF -a $count -lt 6
do
    sleep 1
    count=`expr $count + 1`
done
if test ! -s $NSSERV_REF
then
    echo "Failed!"
    echo "(NamingService was not started)"
    exit
else
    echo "OK!"
fi
