ansible-role-minecraft/templates/start-server.sh

11 lines
189 B
Bash

#! /bin/bash
instance="{{ minecraft_name }}"
/usr/bin/screen -DmS "$instance" \
/usr/bin/java \
-Xms"$JRE_XMS" \
-Xmx"$JRE_XMX" \
-Dfml.queryResult=confirm \
-jar server.jar \
nogui