Ajout du script de lancement d'un serveur Minecraft
This commit is contained in:
parent
e4edf19513
commit
7c6e663ee3
1 changed files with 17 additions and 0 deletions
17
bin/minecraft_server-start.sh
Executable file
17
bin/minecraft_server-start.sh
Executable 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
|
||||||
|
|
Loading…
Reference in a new issue