From e81bbabf9819ab10b7149e8f1e5c4a7cf4f66132 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 18 Feb 2020 14:27:50 +0800 Subject: [PATCH] 1 --- server/bin/monitor.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/server/bin/monitor.sh b/server/bin/monitor.sh index e69de29..5aa992a 100644 --- a/server/bin/monitor.sh +++ 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'