From 364620a4ecaa940daf002cf3f611482b1fddb9b1 Mon Sep 17 00:00:00 2001 From: mathias Date: Wed, 11 Jul 2018 17:10:41 +0300 Subject: [PATCH] Add tmux --- bin/compile | 4 ++++ bin/start | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/compile b/bin/compile index 28ced63..b5596e4 100755 --- a/bin/compile +++ b/bin/compile @@ -6,6 +6,10 @@ mkdir -p $BUILD_DIR/bin/ mv $BIN_DIR/start $BUILD_DIR/bin/ mv $BIN_DIR/excludes $BUILD_DIR/bin/ +curl -o tmux.deb -s -L "http://mirrors.kernel.org/ubuntu/pool/main/t/tmux/tmux_2.1-3build1_amd64.deb" +dpkg -x *.deb . +mv usr/bin/tmux $BUILD_DIR/bin/ + curl -o $BUILD_DIR/minecraft-server.jar -s -L "https://yivesmirror.com/files/paperspigot/PaperSpigot-latest.jar" curl -o $BUILD_DIR/plugins/DoBlockImage.jar -s -L "https://api.spiget.org/v2/resources/5454/download" curl -o Essentials.zip -s -L "https://ci.ender.zone/job/EssentialsX/lastSuccessfulBuild/artifact/Essentials/target/*zip*/target.zip" diff --git a/bin/start b/bin/start index e22422c..b15258d 100755 --- a/bin/start +++ b/bin/start @@ -20,9 +20,9 @@ while true; do sleep 1 done & -while true; do +bin/tmux new -d -s server 'while true; do .java/bin/java -Xms0m -Xmx300m -Xss512k -XX:MinHeapFreeRatio=1 -XX:MaxHeapFreeRatio=10 -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:MaxGCPauseMillis=100 -XX:+AggressiveOpts -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:InitiatingHeapOccupancyPercent=10 -XX:TargetSurvivorRatio=90 -XX:-UseBiasedLocking -XX:+UseLargePagesInMetaspace -XX:+UseNUMA -XX:+UseTransparentHugePages -Dcom.mojang.eula.agree=true -Dlog4j.configurationFile=log4j2.xml -jar minecraft-server.jar --world-dir=worlds > /dev/null 2>&1 sleep 1 -done & +done' & sleep infinity