2017-11-13 17:57:31 +11:00
|
|
|
#!/bin/bash
|
2018-05-15 19:49:41 +11:00
|
|
|
source $(dirname $0)/game_globals
|
2018-05-15 19:55:58 +11:00
|
|
|
[ ! -r "$(dirname $0)/../../params/${GAME_NAME}.params" ] && echo "Fichier de parameteres manquant : $(dirname $0)/../../params/${GAME_NAME}.params" && exit 2
|
|
|
|
source $(dirname $0)/../../params/${GAME_NAME}.params
|
2017-11-13 17:57:31 +11:00
|
|
|
[ ! -d ${LOG_PATH} ] && mkdir -p ${LOG_PATH}
|
|
|
|
[ ! -x ${GAME_BIN} ] && echo "Le binaire du jeu n'existe pas : ${GAME_BIN}"
|
|
|
|
|
|
|
|
echo "Lancemement du serveur..."
|
|
|
|
echo "${GAME_BIN} ${GAME_PARAMS}"
|
2018-05-15 19:49:41 +11:00
|
|
|
nohup ${GAME_BIN} ${GAME_PARAMS} >> ${LOG_PATH}/${GAME_NAME}_server.log 2>> ${LOG_PATH}/${GAME_NAME}_server.err &
|