#!/bin/bash
#M start gateone script
COMMAND_LINE=$@
GATEONE_DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
PYTHON_BIN=$GATEONE_DIR/python/bin/python
export PATH=$GATEONE_DIR/python/bin:$PATH

go_start() {
  $GATEONE_DIR/gateone/gateone.py &
}

go_stop() {
  $GATEONE_DIR/gateone/gateone.py --kill
}

if [ "$1" = "start" ] ; then
  go_start
elif [ "$1" = "stop" ] ; then
  go_stop 
else
 echo "Usage: $0 {start|stop}" 
fi



