#!/bin/sh
#
# burnin
#
# chkconfig: 345 99 01
#
# description: Start and Stop Burnin

# See how we were called.
case "$1" in
  start)
        # Touch the file /etc/burnin_on
        # As long as that file is there the burnin programs will run
        touch /etc/burnin_on
        /root/bin/init.zioerror
        /root/bin/soft.restart.seti
        /root/bin/clear.bonnie
        ;;
  shutdown)
        # This is for a warm shutdown.. all current tasks running will complete
        # Remove the file /etc/burnin_on
        # nothing will start after that.
        rm /etc/burnin_on
        /root/bin/soft.stop.seti
        ;;
  stop)
        #This will kill all burnin activity immediately
        /root/bin/kill.bonnie
        /root/bin/kill.seti
	/root/bin/kill.nettest
        rm /etc/burnin_on
        ;;
  *)
        echo "Usage: burnin {start|shutdown|stop}"
        exit 1
esac
exit 0

