dotfiles/bin/minecraft_server-start.sh
2023-04-28 08:11:39 +02:00

17 lines
241 B
Bash
Executable file

#!/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