:
#
#	UNITEX	vs 2.0 		copyright DATABOLIN AB
#
#	ut_start -- start unitex 
#
#   Modifications: Saving old log at system start by lawi 851106
#                  No start if stop file exists by lawi 851119		
#		   Removal of file containing ut_rs pid no. by lawi 860311 
#		   partition and spool variables by lawi 860507
#		   start via ut_rs.start av goran 871110
#
PART="/z"
SPOOL="/unitex/spool"

UT_STOP=$PART$SPOOL"/unitexstop"

if test -f $UT_STOP
then
	exit 1
fi
cp $PART$SPOOL/log $PART$SPOOL/log.old 2>/dev/null
rm -f  $PART$SPOOL/log 
rm -f  $PART$SPOOL/error/*
rm -f  $PART$SPOOL/send/lock $PART$SPOOL/rec/lock
rm -f  $PART$SPOOL/.rs_pid
$PART/unitex/ix44_start

# cat > $PART$SPOOL/qclear < /dev/null

$PART/unitex/ut_rs.start&
