#!/usr/bin/env bash
BASE_DIR="$(cd "$(dirname "$0")"; pwd)";
cd $BASE_DIR/../

PID=`ps -ef | grep java | grep scouter-server-boot.jar | awk '{print $2}'`

if [ e$PID != "e" ] ; then
    echo "Scouter server is already running..."
    exit;
fi

nohup java -Xmx512m -classpath ./scouter-server-boot.jar scouter.boot.Boot ./lib > nohup.out 2>&1 &
sleep 1
