Skip to content
Jihoon Lee edited this page Mar 31, 2015 · 1 revision

Upstart Script for roswww based web server

description "ROCON Roswww"

setuid rocondev

script
  WORKSPACE_PATH=/home/rocondev/rocon/roswww
  PYTHON_BIN=/usr/bin/python
  WBSERVER_SCRIPT=/opt/ros/indigo/lib/roswww/webserver.py
  PORT=3031

  echo "Starting roswwwserver"
  echo "Sourcing roswww workspace"
  . $WORKSPACE_PATH/devel/setup.sh
  echo "done"
  rospack profile

  echo "Starting Web Server in port $PORT"
  $PYTHON_BIN $WBSERVER_SCRIPT -p $PORT
  echo "Done"
end script                                                                                                                                                                              
Clone this wiki locally