#!/bin/sh
#
# Start Robot Server - Place in /etc/init.d/ directory of E10
#

start() {
	echo -n "Starting Robot Server"
	cd /root/robotArm
	start-stop-daemon -S -b -x python -- robotServer.py --port=80
	
	echo "OK"
}

stop() {
	echo "OK"
}
restart() {
	stop
	start
}

case "$1" in
  start)
  	start
	;;
  stop)
  	stop
	;;
  restart|reload)
  	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac

exit $?

 