2016-01-30 04:07:29 -08:00
|
|
|
# THIS IS THE CONFIGURATION FILE FOR THE MANAGING SCRIPT NOT FOR THE ACTUAL SERVER
|
|
|
|
# Variables are interpreted in bash. Simply using bash-syntax is sufficient.
|
2015-09-20 14:23:34 -07:00
|
|
|
|
|
|
|
# General parameters
|
|
|
|
SERVER_ROOT="/srv/minecraft"
|
2016-03-13 14:07:58 -07:00
|
|
|
BACKUP_DEST="/srv/minecraft/backup"
|
|
|
|
BACKUP_PATHS="world" # World paths separated by spaces relative to SERVER_ROOT
|
2015-09-20 14:23:34 -07:00
|
|
|
KEEP_BACKUPS="10"
|
2016-03-13 14:07:58 -07:00
|
|
|
GAME_USER="minecraft"
|
|
|
|
MAIN_EXECUTABLE="minecraft_server.jar"
|
2015-09-20 14:23:34 -07:00
|
|
|
SESSION_NAME="minecraft"
|
|
|
|
|
2016-02-29 12:35:38 -08:00
|
|
|
# System parameters for java
|
2016-06-24 08:14:20 -07:00
|
|
|
# -Xms sets the intial heap size (must be a multiple of 1024 and greater than 2MB, no spaces!)
|
|
|
|
# -Xmx sets the maximum heap size (must be a multiple of 1024 and greater than 2MB, no spaces!)
|
|
|
|
# -XX:ParallelGCThreads defines the number of threads the server may use
|
|
|
|
SERVER_START_CMD="java -Xms512M -Xmx1024M -XX:ParallelGCThreads=1 -jar './${MAIN_EXECUTABLE}' nogui"
|
2016-02-29 12:35:38 -08:00
|
|
|
|
|
|
|
# System parameters for the actual game server
|
|
|
|
# Describes whether a daemon process which stops the server if it is not used by a player
|
|
|
|
# within IDLE_IF_TIME seconds should be started. The GAME_PORT is not inhereted to the server!
|
|
|
|
IDLE_SERVER=false # true or false
|
2016-08-04 03:51:07 -07:00
|
|
|
# Ensure that if SESSION_NAME is passed through the command line and therefore set to read only by the script,
|
|
|
|
# IDLE_SESSION_NAME gets altered according to the command line and not the configurtion file, hence invoke the variable
|
|
|
|
IDLE_SESSION_NAME="${SESSION_NAME}_idle_server"
|
2016-02-29 12:35:38 -08:00
|
|
|
GAME_PORT="25565" # used to listen for incoming connections when the server is down
|
|
|
|
CHECK_PLAYER_TIME="30" # in seconds
|
|
|
|
IDLE_IF_TIME="1200" # in seconds
|