#!/bin/sh

# Setup Hi-Track Monitor as a service, to be run at system boot
# The name 'rundfmon' is used as the service name for historical reasons
# The single parameter is the path to the folder where Hi-Track monitor has 
# been installed.

/bin/sed -e s%MYPATH%$1% $1/rdtemp > $1/rundfmon
/bin/chmod 755 $1/rundfmon
/bin/cp -p $1/rundfmon /etc/init.d/rundfmon
#  on Red Hat Linux, use
/sbin/chkconfig --add rundfmon
#  on debian / ubuntu, use 
#  update-rc.d rundfmon defaults 99
