aboutsummarylogtreecommitdiffstats
path: root/minecraftd.conf
diff options
context:
space:
mode:
authorGordian Edenhofer2016-02-29 21:35:38 +0100
committerGordian Edenhofer2016-02-29 21:35:38 +0100
commitf312efaac7a9714c82cd506027c342a41e66e211 (patch)
tree6c3e41efc24e49cda37190da87854f02c654b45d /minecraftd.conf
parent8a419426041fecec19b4a9b97bcdaf8c0bb9a6be (diff)
downloadaur-f312efaac7a9714c82cd506027c342a41e66e211.tar.gz
Upgpkg: 1.9-1
Add suspending capability for the minecraft server through the control script and an additional screen session which listens on the same port with netcat. * Update .conf accordingly * IDLE_SERVER can be either true or false * The default is no idle server * Choose an available netcat flavor automatically Variable renaming in .install. Notify the user of kept directories on post_remove and alter ownership to root before removing the game user. Print error messages to stderr.
Diffstat (limited to 'minecraftd.conf')
-rw-r--r--minecraftd.conf11
1 files changed, 10 insertions, 1 deletions
diff --git a/minecraftd.conf b/minecraftd.conf
index c517a2eac8c7..40f1aec42ed9 100644
--- a/minecraftd.conf
+++ b/minecraftd.conf
@@ -11,8 +11,17 @@ MC_USER="minecraft"
MAIN_JAR="minecraft_server.jar"
SESSION_NAME="minecraft"
-# System parameters for the minecraft server
+# System parameters for java
MINHEAP="512M"
MAXHEAP="1024M"
THREADS="1"
JAVA_PARMS="-Xmx${MAXHEAP} -Xms${MINHEAP} -XX:ParallelGCThreads=${THREADS}"
+
+# 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
+IDLE_SESSION_NAME="idle_server"
+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