summarylogtreecommitdiffstats
path: root/forged.conf
diff options
context:
space:
mode:
authorNitroretro2019-12-30 08:35:41 +0200
committerNitroretro2019-12-30 08:35:41 +0200
commitd4f9b1ee0a1c60f1a4d3c4acc9f0387008f19194 (patch)
tree765c4a6a38622676fc79e81ae705f320a0182a1c /forged.conf
parent4c9db1a8b9e5956eea8d06ceb8aba3debfdb559a (diff)
downloadaur-d4f9b1ee0a1c60f1a4d3c4acc9f0387008f19194.tar.gz
Upgrade: 1.11.2_13.20.1.2386-4
Diffstat (limited to 'forged.conf')
-rw-r--r--forged.conf28
1 files changed, 28 insertions, 0 deletions
diff --git a/forged.conf b/forged.conf
new file mode 100644
index 000000000000..50b475e4ab09
--- /dev/null
+++ b/forged.conf
@@ -0,0 +1,28 @@
+# 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.
+
+# General parameters
+SERVER_ROOT="/srv/forge"
+BACKUP_DEST="/srv/forge/backup"
+BACKUP_PATHS="world" # World paths separated by spaces relative to SERVER_ROOT
+KEEP_BACKUPS="10"
+GAME_USER="forge"
+MAIN_EXECUTABLE="forge.jar"
+SESSION_NAME="forge"
+
+# System parameters for java
+# -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="/usr/lib/jvm/java-8-openjdk/jre/bin/java -Xms512M -Xmx1024M -XX:ParallelGCThreads=1 -jar './${MAIN_EXECUTABLE}' nogui"
+
+# 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
+# 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="idle_server_${SESSION_NAME}"
+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