1
This commit is contained in:
parent
47e2112319
commit
9a5d7b7ae2
16
server/bin/restart.sh
Executable file
16
server/bin/restart.sh
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
source /etc/profile
|
||||||
|
source /root/.bash_profile
|
||||||
|
|
||||||
|
pid=`ps -ef|grep 'gameserver2004 -n 1 -i 1'|grep -v grep|awk '{print $2}'`
|
||||||
|
echo $pid
|
||||||
|
|
||||||
|
if [[ $pid != "" ]]
|
||||||
|
then
|
||||||
|
echo $pid|xargs kill -9
|
||||||
|
else
|
||||||
|
echo "pid 为空"
|
||||||
|
fi
|
||||||
|
|
||||||
|
nohup ./gameserver2004 -n $1 -i $2 >> gameserver2004$2_$1.out &
|
Loading…
x
Reference in New Issue
Block a user