Compare commits

...

2 commits

Author SHA1 Message Date
Hippolyte Chauvin
0e63541479 Ajout : script de lancement d'un serveur Minecraft 2023-06-30 12:45:52 +02:00
Hippolyte Chauvin
22527d6b5e Suppression : script inutile 2023-06-30 12:23:54 +02:00
2 changed files with 8 additions and 17 deletions

8
bin/launch-minecraft-server Executable file
View file

@ -0,0 +1,8 @@
#!/bin/sh -ex
# Se déplacer dans le dossier du serveur
cd "/srv/minecraft/servers/${1}"
# Exécution
sudo -u minecraft screen ./start.sh

View file

@ -1,17 +0,0 @@
#!/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