scripts/ARK/ARK_server_start.sh

11 lines
448 B
Bash
Executable File

#!/bin/bash
[ ! -r "$(dirname $0)/game.params" ] && echo "Fichier de parameteres manquant : $(dirname $0)/game.params" && exit 2
source $(dirname $0)/game.params
[ ! -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}"
nohup ${GAME_BIN} ${GAME_PARAMS} >> ${LOG_PATH}/ark_server.log 2>> ${LOG_PATH}/ark_server.err &