. ./Scripts/SetEnvironment
echo
echo "Waiting for Interface Repository to start up..."

rm -f $IRSERV_REF
$IRSERV --ior > $IRSERV_REF &
count=0 
while test ! -s $IRSERV_REF -a $count -lt 6
do
    sleep 1
    count=$(expr $count + 1)
done
if test ! -s $IRSERV_REF
then
    echo "Failed!"
    echo "(Interface repository was not started)"
    exit
else
    echo "OK!"
fi
