mirror of
https://github.com/TotalFreedomMC/TF-Scripts.git
synced 2024-12-22 16:05:03 +00:00
Move the launch params as they will be global and change everywhere (hopefully)
This commit is contained in:
parent
cdeff8c58c
commit
8e4545653d
3 changed files with 7 additions and 3 deletions
|
@ -8,3 +8,7 @@ PAPER_JAR_NAME="paperclip.jar"
|
|||
SCREEN_NAME="TotalFreedom"
|
||||
SARCASTIC_MESSAGE="The server is not running... Why don't you try starting it? <3"
|
||||
RESET_FILE=/home/tfserver/.resetting
|
||||
JVM_LAUNCH_OPTS="-XX:+CMSClassUnloadingEnabled -XX:ParallelGCThreads=2 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10"
|
||||
|
||||
#Java 16 Launch Opts
|
||||
#JVM_LAUNCH_OPTS="-illegal-access=permit -XX:ParallelGCThreads=2 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10"
|
|
@ -30,6 +30,6 @@ if screen -list | grep -q "$SCREEN_NAME";
|
|||
then
|
||||
echo "ERROR - We have been unable to re-start the server... Please execute this manually"
|
||||
else
|
||||
screen -dmS $SCREEN_NAME java -Xms$JVM_HEAP -Xmx$JVM_HEAP -XX:+CMSClassUnloadingEnabled -XX:ParallelGCThreads=2 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -jar $PAPER_JAR_NAME
|
||||
screen -dmS $SCREEN_NAME java -Xms$JVM_HEAP -Xmx$JVM_HEAP $JVM_LAUNCH_OPTS -jar $PAPER_JAR_NAME
|
||||
echo "Server Started"
|
||||
fi
|
||||
|
|
|
@ -11,7 +11,7 @@ else
|
|||
then
|
||||
echo "ERROR - There is an instance of the server already running. Make sure it is killed first and try again"
|
||||
else
|
||||
screen -dmS $SCREEN_NAME java -Xms$JVM_HEAP -Xmx$JVM_HEAP -XX:+CMSClassUnloadingEnabled -XX:ParallelGCThreads=2 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -jar $PAPER_JAR_NAME
|
||||
screen -dmS $SCREEN_NAME java -Xms$JVM_HEAP -Xmx$JVM_HEAP $JVM_LAUNCH_OPTS -jar $PAPER_JAR_NAME
|
||||
echo "Server Started"
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue