add java config vars

This commit is contained in:
Sebastian Hugentobler 2016-07-20 18:05:31 +02:00
parent 1841433d01
commit 1f4290fcd3
4 changed files with 10 additions and 5 deletions

View File

@ -0,0 +1,4 @@
[template]
src = "run.tmpl"
dest = "/etc/services.d/minecraft/run"
mode = "0750"

View File

@ -0,0 +1,4 @@
#!/usr/bin/with-contenv sh
cd /var/lib/bungeecord
exec s6-setuidgid bungeecord java -Xms{{getenv "MIN_RAM"}} -Xmx{{getenv "MAX_RAM" }} -jar /var/lib/bungeecord/bungeecord.jar

View File

@ -30,4 +30,5 @@ max-players={{getenv "MAX_PLAYERS"}}
spawn-monsters={{getenv "SPAWN_MONSTERS"}}
generate-structures={{getenv "GENERATE_STRUCTURES"}}
view-distance={{getenv "VIEW_DISTANCE"}}
motd={{getenv "MOTD"}}
motd={{getenv "MOTD"}}
server-name={{getenv "SERVER_NAME"}}

View File

@ -1,4 +0,0 @@
#!/usr/bin/with-contenv sh
cd /var/lib/minecraft
exec s6-setuidgid minecraft java -jar /var/lib/minecraft/spigot.jar