#!/bin/bash
#
# start/stop/restart the MscService daemon.
#
# processname: MscService
# pidfile: /var/run/MscService.pid

/etc/rc.d/init.d/script.template $1 MscService
exit $?

#RETVAL=0
#RC=0

#. /etc/rc.d/init.d/functions
#. /etc/rc.d/init.d/init_functions
#. /etc/profile.d/SetNNEnvVar.sh
#
#prog="linstar"
#
#start() {
#        echo $"Checking dependencies for $prog."
#		 /bin/rm -f /tmp/osa_ipc/*DS30*
#        testforpid $prog
#        RC=$?
#        if [ $RC -eq 0 ]; then
#            echo $"Starting $prog."
#	    cd /nn/sbin
#	    if [ -f /nn/sbin/Linstar.txt ]; then
#	    	mv Linstar.txt oldLinstar.txt
#	    fi
#
#	    touch Linstar.txt
#	    echo $date >> Linstar.txt
#	    echo $"**********************" >> Linstar.txt
#            ./$prog /log /debug >> Linstar.txt &
#            RETVAL=$?
#	    sleep 120
#
#            [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
#            checkcleanstart $prog
#            return $RETVAL
#        else
#            RETVAL=$RC
#            echo $"Dependency check failed for $prog."
#            return $RETVAL
#        fi
#}
#
#stop() {
#        echo -n $"Stopping $prog: "
#        killproc $prog -2
#		 /bin/rm -f /tmp/osa_ipc/*DS30*
#		 #/nn/sbin/remove
#        RETVAL=$?
#        echo
#        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
#        return $RETVAL
#}
#
#restart() {
#        stop
#        start
#}
#
#reload() {
#        restart
#}
#
#case "$1" in
#  start)
#        start
#        ;;
#  stop)
#        stop
#        ;;
#  restart)
#        restart
#        ;;
#  reload)
#        reload
#        ;;
#  condrestart)
#        [ -f /var/lock/subsys/$prog ] && restart || :
#        ;;
#  *)
#        echo $"Usage: $0 {start|stop|reload|restart|condrestart}"
#        exit 1
#esac
#
#exit $?
