dotfiles/bin/minecraft_server-start.sh

18 lines
241 B
Bash
Raw Normal View History

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