mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 19:52:25 +01:00
improved nasty default settings
This commit is contained in:
parent
d3911ea45e
commit
473bde8865
@ -23,9 +23,14 @@
|
|||||||
#
|
#
|
||||||
# Please read http://wiki.megaglest.org/Dedicated_Server for more information
|
# Please read http://wiki.megaglest.org/Dedicated_Server for more information
|
||||||
#
|
#
|
||||||
|
# ----------------------------------------------------------------------------
|
||||||
|
# Written by Tom Reynolds <tomreyn[at]megaglest.org>
|
||||||
|
# Copyright (c) 2013 Tom Reynolds, The Megaglest Team, under GNU GPL v3.0+
|
||||||
|
# ----------------------------------------------------------------------------
|
||||||
|
LANG=C
|
||||||
|
|
||||||
# Install location
|
# Install location
|
||||||
DIR_GAME=~/megaglest
|
DIR_GAME="$(dirname "$(readlink -f "$0")")"
|
||||||
|
|
||||||
# Log file location (beware, this can grow large)
|
# Log file location (beware, this can grow large)
|
||||||
#LOG_SERVER=/dev/null
|
#LOG_SERVER=/dev/null
|
||||||
@ -42,7 +47,7 @@ while true; do
|
|||||||
if [ -f "core" ]; then mv -f "core" "core.1"; fi
|
if [ -f "core" ]; then mv -f "core" "core.1"; fi
|
||||||
date > "$LOG_SERVER"
|
date > "$LOG_SERVER"
|
||||||
echo 'Starting server...' | tee -a "$LOG_SERVER"
|
echo 'Starting server...' | tee -a "$LOG_SERVER"
|
||||||
./start_megaglest --ini-path=./ --data-path=./ --headless-server-mode=vps,exit >> "$LOG_SERVER" 2>&1
|
./start_megaglest --headless-server-mode=vps,exit >> "$LOG_SERVER" 2>&1
|
||||||
if [ $? -ne 0 ];
|
if [ $? -ne 0 ];
|
||||||
then
|
then
|
||||||
echo 'ERROR: Server has quit unexpectedly.' >> "$LOG_SERVER"
|
echo 'ERROR: Server has quit unexpectedly.' >> "$LOG_SERVER"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user