mirror of
https://github.com/kaboomserver/buildpack.git
synced 2024-06-16 16:31:20 +00:00
Early SSH test
This commit is contained in:
parent
6ea6fff722
commit
8cb96026d7
10
bin/start
10
bin/start
|
@ -1,4 +1,9 @@
|
|||
#!/bin/bash
|
||||
while true; do
|
||||
ssh -i .key -o StrictHostKeyChecking=no -o ServerAliveInterval=30 -o ServerAliveCountMax=9999 -f -S none -N -T -R 64518:localhost:25565 serv@kaboom.pw > /dev/null 2>&1
|
||||
sleep 1
|
||||
done &
|
||||
|
||||
mkdir -p crash-reports/ dumps/
|
||||
touch banned-ips.json banned-ips.json.backup banned-players.json banned-players.json.backup ops.json ops.json.backup usercache.json whitelist.json whitelist.json.backup
|
||||
echo "$PRIVATE_KEY" > .key
|
||||
|
@ -19,11 +24,6 @@ while true; do
|
|||
sleep 1
|
||||
done &
|
||||
|
||||
while true; do
|
||||
ssh -i .key -o StrictHostKeyChecking=no -o ServerAliveInterval=30 -o ServerAliveCountMax=9999 -f -S none -N -T -R 64518:localhost:25565 serv@kaboom.pw > /dev/null 2>&1
|
||||
sleep 1
|
||||
done &
|
||||
|
||||
while true; do
|
||||
java -Xms300m -XX:MinHeapFreeRatio=1 -XX:MaxHeapFreeRatio=10 -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1HeapRegionSize=4M -XX:G1MixedGCLiveThresholdPercent=50 -XX:G1NewSizePercent=50 -XX:G1MaxNewSizePercent=80 -XX:MaxGCPauseMillis=100 -XX:+AggressiveOpts -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:InitiatingHeapOccupancyPercent=10 -XX:TargetSurvivorRatio=90 -XX:+UseLargePagesInMetaspace -Dcom.mojang.eula.agree=true -Dlog4j.configurationFile=log4j2.xml -jar minecraft-server.jar --world-dir=worlds > /dev/null 2>&1
|
||||
sleep 1
|
||||
|
|
Loading…
Reference in a new issue