forked from ahurac/dotfiles
18 lines
241 B
Bash
18 lines
241 B
Bash
|
#!/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
|
||
|
|