export GOPROXY=https://goproxy.cn
export PATH=$PATH:/usr/local/go/bin
cd /opt/src/pocassist/
go build
go_id=`ps -ef|grep "pocassist" |grep -v "grep" | awk '{print $2}'`
if [ -z "$go_id" ];
then
echo "[go pid not found]"
else
kill -9 $go_id
echo "killed $go_id"
fi
echo "clean old file"
echo "strat new process"
chmod -R 777 ./pocassist
BUILD_ID=DONTKILLME
nohup ./pocassist >pocassist.log 2>&1 &