jackz

jackz / start_paper.sh

Last active 4 months ago

Like 0

starts the latest paper

jackz revised this gist 2 years ago · 714c2ac

No changes

jackz revised this gist 6 years ago · 2c99f8f

No changes

jackz revised this gist 7 years ago · dbec82b

1 file changed, 1 deletion

start.sh
@@ -1,7 +1,6 @@
1 1 #!/bin/bash
2 2 JAR=$(find -type f -name 'paper-*.jar' -printf %f\\n | sort | head -1)
3 3 echo Found jar: ${JAR}
4 - #!/bin/bash
5 4 while true; do
6 5 java -server -Xms1G -Xmx1G -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:MaxGCPauseMillis=100 -XX:+DisableExplicitGC -XX:TargetSurvivorRatio=90 -XX:G1NewSizePercent=50 -XX:G1MaxNewSizePercent=80 -XX:G1MixedGCLiveThresholdPercent=35 -XX:+AlwaysPreTouch -XX:+ParallelRefProcEnabled -Dusing.aikars.flags=mcflags.emc.gs -jar ${JAR}
7 6 echo "";

jackz revised this gist 7 years ago · 12b918b

1 file changed, 13 insertions

start.sh (file created)
@@ -0,0 +1,13 @@
1 + #!/bin/bash
2 + JAR=$(find -type f -name 'paper-*.jar' -printf %f\\n | sort | head -1)
3 + echo Found jar: ${JAR}
4 + #!/bin/bash
5 + while true; do
6 + java -server -Xms1G -Xmx1G -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:MaxGCPauseMillis=100 -XX:+DisableExplicitGC -XX:TargetSurvivorRatio=90 -XX:G1NewSizePercent=50 -XX:G1MaxNewSizePercent=80 -XX:G1MixedGCLiveThresholdPercent=35 -XX:+AlwaysPreTouch -XX:+ParallelRefProcEnabled -Dusing.aikars.flags=mcflags.emc.gs -jar ${JAR}
7 + echo "";
8 + for i in {5..1}; do
9 + echo "Server has stopped. Auto-restarting in $i seconds. Ctrl+C to cancel." && sleep 1;
10 + done
11 + sleep 1;
12 + echo "Server auto restarting..."
13 + done;