
# If the Interleaf 6 home directory is not the default location
# /opt/ileaf/ileaf6, the administrator must change ILEAF6_HOME below to
# the correct value before installing this code in a system startup file.

set ILEAF6_HOME = /opt/ileaf/ileaf6

if ( ! (-f $ILEAF6_HOME/bin/lmgrd) ) then
  (echo "${0}: `date`") >>! /usr/adm/license6.log
  (echo "   Could not find daemon $ILEAF6_HOME/bin/lmgrd") \
					 >>! /usr/adm/license6.log
else if ( ! -f $ILEAF6_HOME/data/license/license.dat ) then
  (echo "${0}: `date`") >>! /usr/adm/license6.log
  (echo "   Could not find $ILEAF6_HOME/data/license/license.dat") \
                                         >>! /usr/adm/license6.log
else
  rm -f /tmp/ileaf6nldlock
  $ILEAF6_HOME/bin/lmgrd \
	-c $ILEAF6_HOME/data/license/license.dat >>&! \
	/usr/adm/license6.log & (echo 'Starting Leaf-INL.') >/dev/console
endif
