1
This commit is contained in:
commit
ab8769beee
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source /etc/profile
|
#source /etc/profile
|
||||||
source /root/.bash_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 -n $2 -i $1"|grep -v grep|awk '{print $2}')
|
||||||
echo $pid
|
echo $pid
|
||||||
@ -13,4 +13,4 @@ else
|
|||||||
echo "pid 为空"
|
echo "pid 为空"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
nohup ./gameserver2006 -n $2 -i $1 >> gameserver2006$2_$1.out &
|
nohup ./gameserver2006 -n $2 -i $1 >> gameserver2006$2_$1.out 2>$1 &
|
||||||
|
@ -87,6 +87,7 @@ static void GSListeneron_error(a8::TcpListener*, int type, int errorid)
|
|||||||
a8::XParams()
|
a8::XParams()
|
||||||
.SetParam1(errorid)
|
.SetParam1(errorid)
|
||||||
);
|
);
|
||||||
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GGListener::Init()
|
void GGListener::Init()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user