#!/bin/sh
RUN_NAME="RG3.Web.Host.PaaS.dll"
#export LANG="en_US.UTF-8"
cd `dirname $0`
PID=`ps -ef|grep $RUN_NAME|grep -v grep|awk '{printf $2}'`
echo $PID
if [ ! -n "$PID" ];
then
echo "RG3.Web.Host.PaaS bt success"
else
echo "RG3.Web.Host.PaaS bt started"
kill -9 $PID
PID=`ps -ef|grep $RUN_NAME|grep -v grep|awk '{printf $2}'`
echo "RG3.Web.Host.PaaS bt success restart"
echo $PID
fi
#export DOTNET_ROOT=/usr/local/dotnet/dotnet-sdk-6.0.262
#export PATH=$PATH:/usr/local/dotnet/dotnet-sdk-6.0.262
nohup dotnet $RUN_NAME --owner=bt --proxyowner=bt-hw --consolelog=close > RG3.Web.Host.PaaS.log 2>&1
ps -ef|grep RG3.Web.Host.PaaS
文档更新时间: 2024-02-24 10:45 作者:admin