#!/sbin/ksh
#

#
# File for automatic startup of SIGMET IRIS, on SGI platforms
#

PATH=/usr/sbin:/usr/bin:/sbin

case $1 in

'start')
	echo "case start"
	# Execute the commands to start your subsystem
	if [ -f /usr/sigmet/config/profile ] ; then
		. /usr/sigmet/config/profile
	else
		echo "ERROR: /usr/sigmet/config/profile file missing"
	fi
	if [ -x /usr/sigmet/bin/siris ] ; then
		/usr/sigmet/bin/siris -auto
	else
		echo "ERROR: /usr/sigmet/bin/siris file missing"
	fi
	;;

'stop')
	:
	# Execute the commands to stop your subsystem
	if [ -x /usr/sigmet/bin/qiris ] ; then
		/usr/sigmet/bin/qiris -auto
	else
		echo "ERROR: /usr/sigmet/bin/qiris file missing"
	fi

	;;

*)
	echo "usage: $0 {start|stop}"
	;;
esac
