add java config vars
This commit is contained in:
parent
1841433d01
commit
1f4290fcd3
4
rootfs/etc/confd/conf.d/run.toml
Normal file
4
rootfs/etc/confd/conf.d/run.toml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[template]
|
||||||
|
src = "run.tmpl"
|
||||||
|
dest = "/etc/services.d/minecraft/run"
|
||||||
|
mode = "0750"
|
4
rootfs/etc/confd/templates/run.tmpl
Normal file
4
rootfs/etc/confd/templates/run.tmpl
Normal 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
|
@ -30,4 +30,5 @@ max-players={{getenv "MAX_PLAYERS"}}
|
|||||||
spawn-monsters={{getenv "SPAWN_MONSTERS"}}
|
spawn-monsters={{getenv "SPAWN_MONSTERS"}}
|
||||||
generate-structures={{getenv "GENERATE_STRUCTURES"}}
|
generate-structures={{getenv "GENERATE_STRUCTURES"}}
|
||||||
view-distance={{getenv "VIEW_DISTANCE"}}
|
view-distance={{getenv "VIEW_DISTANCE"}}
|
||||||
motd={{getenv "MOTD"}}
|
motd={{getenv "MOTD"}}
|
||||||
|
server-name={{getenv "SERVER_NAME"}}
|
@ -1,4 +0,0 @@
|
|||||||
#!/usr/bin/with-contenv sh
|
|
||||||
|
|
||||||
cd /var/lib/minecraft
|
|
||||||
exec s6-setuidgid minecraft java -jar /var/lib/minecraft/spigot.jar
|
|
Loading…
Reference in New Issue
Block a user