#!/bin/bash

CUR_DATE=`date +%Y%m%d_%H%M%S`
echo "$CUR_DATE >> $0" >> /opt/pos/run.log

ps xa | grep http_api | grep -v grep | grep -v run_devel | awk '{ print $1 }' | xargs kill -9 2> /dev/null

DIR="/opt/pos/server/http_api"

export MOJO_MAX_MESSAGE_SIZE=0

morbo -v -w $DIR/templates -w /opt/pos/lib -l http://0.0.0.0:3041 $DIR/app.pl

