#!/bin/sh
#
# /etc/init.d/eltagent
#
######################################################################
# Automatically create rc*.d symlinks for startup/shutdown
# Use sudo /sbin/chkconfig --add eltagent
# Also --reset option will recreate the links if messed up.
# Syntax     chkconfig levels start-priority stop-priority
# chkconfig: 2345 97 37
# description: init service for ELT Agent operations
######################################################################


case $1 in
	start)  echo "... START eltagent process"
		/bin/su flexcls -c "/opt/elt/bin/eltagent.csh </dev/null >/dev/null 2>&1 &"
		;;
	stop)   echo "... STOP not supported for eltagent process, please use \"kill\" instead"
		;;
	*)
		echo "usage: $0 start|stop"
		;;
	esac
exit 0
