This commit is contained in:
aozhiwei 2023-11-21 14:55:56 +08:00
parent a9e84139aa
commit 76fa3716b9

View File

@ -3,7 +3,7 @@
#source /etc/profile
#source /root/.bash_profile
pid=$(ps -ef|grep "gameserver2006 -n $2 -i $1"|grep -v grep|awk '{print $2}')
pid=$(ps -ef|grep "gameserver2006 -z 1 -n $2 -i $1"|grep -v grep|awk '{print $2}')
echo $pid
if [[ $pid != "" ]]
@ -13,4 +13,4 @@ else
echo "pid 为空"
fi
nohup ./gameserver2006 -n $2 -i $1 >> gameserver2006$2_$1.out 2>$1 &
nohup ./gameserver2006 -z 1 -n $2 -i $1 >> gameserver2006$2_$1.out 2>$1 &