diff --git a/git b/git deleted file mode 160000 index 9ba2696..0000000 --- a/git +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 9ba2696e52664c9f5b7a1e09a4a5516359d330b0 diff --git a/server/bin/monitor.sh b/server/bin/monitor.sh new file mode 100644 index 0000000..5aa992a --- /dev/null +++ b/server/bin/monitor.sh @@ -0,0 +1,11 @@ +path_arr=$(echo $PWD|tr '/' '\n') +path_arr=(${path_arr}) +GAME_ID=${path_arr[-5]} + +if echo $GAME_ID | grep -q '[^0-9]' +then + echo 'game_id参数必须为数字' + exit 1 +fi + +python ../../third_party/tools/scripts/server/monitor.py gameserver${GAME_ID} '-n1 -i1'