summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2020-08-23 18:51:05 +0200
committerConrad Kostecki <conikost@gentoo.org>2020-08-23 19:21:45 +0200
commit12cf26ce1ef4d7712b2aba972d805aea7f6ca545 (patch)
treeb0562268a3107ddc2276c7ad4171937af9608aaa /games-server/minecraft-server/files/minecraft-server.confd-r1
parentx11-misc/j4-dmenu-desktop: drop old version (diff)
downloadgentoo-12cf26ce1ef4d7712b2aba972d805aea7f6ca545.tar.gz
gentoo-12cf26ce1ef4d7712b2aba972d805aea7f6ca545.tar.bz2
gentoo-12cf26ce1ef4d7712b2aba972d805aea7f6ca545.zip
games-server/minecraft-server: add custom attach command
Since the minecraft-server is running as an interactive console process in background, this custom command 'attach' enables the possibility to connect with dtach to that interactive console and send commands to the running server. Closes: https://github.com/gentoo/gentoo/pull/15055 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'games-server/minecraft-server/files/minecraft-server.confd-r1')
-rw-r--r--games-server/minecraft-server/files/minecraft-server.confd-r112
1 files changed, 12 insertions, 0 deletions
diff --git a/games-server/minecraft-server/files/minecraft-server.confd-r1 b/games-server/minecraft-server/files/minecraft-server.confd-r1
new file mode 100644
index 000000000000..8b380349e9ac
--- /dev/null
+++ b/games-server/minecraft-server/files/minecraft-server.confd-r1
@@ -0,0 +1,12 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Dtach options, which will used, when the `attach` extra command is called.
+# By default, CTRL+D is used, and no redraw is done,
+# when you want to detach from the attached console.
+DTACH_OPTS="-e '^D' -r none"
+
+# Java options for your started server
+# You should at least define some memory settings (-Xms, -Xmx),
+# for maximum memory, as the java default is far to low for Minecraft
+MINECRAFT_OPTS="-Xms1024m -Xmx1024m"