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