Ajout du script de lancement d'un serveur Minecraft

This commit is contained in:
Hippolyte Chauvin 2023-04-28 08:11:39 +02:00
parent e4edf19513
commit 7c6e663ee3

17
bin/minecraft_server-start.sh Executable file
View file

@ -0,0 +1,17 @@
#!/bin/sh
# cd to the server dir
cd "$(dirname "$(readlink -f "$0")")" || exit
# Variables
min_ram=1G
max_ram=4G
server_jar=
# Execution
exec screen java \
"-Xms${min_ram}" \
"-Xmx${max_ram}" \
-jar "$server_jar" \
nogui