11 lines
450 B
Bash
Executable File
11 lines
450 B
Bash
Executable File
#!/bin/bash
|
|
|
|
serveur=$1
|
|
shard=$2
|
|
|
|
[ -z ${serveur} ] && echo "XXX Missing parameter : server name XXX" && exit 1
|
|
[ -z ${shard} ] && echo "XXX Missing parameter : shard [dehors|caves] XXX" && exit 1
|
|
[ ${shard} != "Master" ] && [ ${shard} != "Caves" ] && echo "XXX Parameter error : shard [dehors|caves] XXX" && exit 1
|
|
mkdir -p ${LOG_PATH}
|
|
nohup ${GAME_BIN} ${GAME_PARAMS} >> ${LOG_PATH}/${serveur}_${shard}.out 2>>${LOG_PATH}/${serveur}_${shard}.err &
|