mirror of
https://github.com/kaboomserver/buildpack.git
synced 2024-06-26 04:50:36 +00:00
Use ttyd with tmux
This commit is contained in:
parent
164f620b42
commit
8ba2c6807c
|
@ -15,6 +15,7 @@ while true; do
|
||||||
tmux new -d -s server 'sh -x script/server' >/dev/null
|
tmux new -d -s server 'sh -x script/server' >/dev/null
|
||||||
tmux new -d -s remote 'sh -x script/remote' >/dev/null
|
tmux new -d -s remote 'sh -x script/remote' >/dev/null
|
||||||
tmux new -d -s schematics 'sh -x script/schematics' >/dev/null
|
tmux new -d -s schematics 'sh -x script/schematics' >/dev/null
|
||||||
|
stty intr '' && ttyd -p $PORT tmux attach -t server
|
||||||
sleep 5
|
sleep 5
|
||||||
done &
|
done &
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
while true; do
|
while true; do
|
||||||
stty intr ''
|
java -Xmx384M -Xss512k -Xaggressive -Xcompressedrefs -Xdump:none -Xgcpolicy:balanced -Xcompactexplicitgc -Xcompactgc -Xquickstart -Xshareclasses -XX:-HeapDumpOnOutOfMemoryError -XX:MaxDirectMemorySize=64M -XX:+UseContainerSupport -Dcom.mojang.eula.agree=true -Dpaper.playerconnection.keepalive=360 -jar minecraft-server.jar --world-dir=worlds
|
||||||
ttyd -p $PORT java -Xmx384M -Xss512k -Xaggressive -Xcompressedrefs -Xdump:none -Xgcpolicy:balanced -Xcompactexplicitgc -Xcompactgc -Xquickstart -Xshareclasses -XX:-HeapDumpOnOutOfMemoryError -XX:MaxDirectMemorySize=64M -XX:+UseContainerSupport -Dcom.mojang.eula.agree=true -Dpaper.playerconnection.keepalive=360 -jar minecraft-server.jar --world-dir=worlds
|
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue