#!/bin/bash
#
# /etc/rc.d/init.d/
# chkconfig: 345 99 1
# description: deamon of mloop



# Source function library
. /etc/rc.d/init.d/functions

start() {
    /home/SYSCON/mloop > /dev/null &
	return
}

stop() {
	pkill -SIGINT mloop
	pkill mserverC
	umount /mnt/tmp
	date 010101011970
	return 
}

case "$1" in
	'start')
		start
	;;

	'stop')
		stop
	;;

	'restart')
		stop
		start
	;;
	
	'status')
		status  mloopQS 
	;;

	*)
    	echo "Usage:  {start|stop|restart|status]"
    	exit 1
    ;;

esac
exit $?