#!/bin/sh

export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PLUGIN_DIR=$(cd `dirname $0`; pwd)

pids=`ps -ef | grep -w mtr_exploration.py | grep -v grep | grep -v start.sh | awk '{ printf $2 " " }'`

if [ -z "${pids}" ]; then
    python ${PLUGIN_DIR}/mtr_exploration.py > /dev/null 2>&1 &
fi

exit 0
