Här är ett start script som ska ligga i /usr/LTCAM
Om mgcamd_1.35a ligger i /usr/bin

######################
#!/bin/sh

CAMNAME="mgcamd v.1.35a"

usage()
{
echo "Usage: $0 {start|stop|restart|reload}"
}

if [ $# -lt 1 ] ; then usage ; break ; fi
action=$1

case "$action" in
start)
echo "[SCRIPT] $1: $CAMNAME"
/usr/bin/mgcamd_1.35a &
;;
stop)
echo "[SCRIPT] $1: $CAMNAME"
killall -9 mgcamd_1.35a
;;
restart|reload)
$0 stop
$0 start
;;
*)
usage
;;
esac

exit 0