#!/bin/bash source ./config.sh cd ${BIN_DIR} for((i=1;i<=$GAMEGATE_COUNT;i++)) do ./SogLoader --id=${WORLD_ID}.${GAMEGATE_ID}.$i --cluster=${CFG_PATH}/cluster.json --name=GateServer_Game $@ done if [ "$1" = "stop" ] ; then wait_to_stop_svr GateServer_Game $GAMEGATE_ID $GAMEGATE_COUNT fi