#!/bin/sh
export path=/home/atualli/.local/lib/python3.8/site-packages:$PATH
cd ~/Projetos/huggingface/yoloxTeste
SERVER=192.168.0.153
PORT=8080

if lsof -Pi :$PORT -sTCP:LISTEN -t >/dev/null ; then
    echo "running"
else
    ./telegramCrise.sh "reiniciando_yolox_linux_192.168.0.153:8080"
    pkill -f app.py
    #rm -r /tmp/tmp1*.png
    python app.py &
    echo "not running"
fi