This repository provides a simple service script for a minecraft server.
To set up the server:
- Install a JRE ((Documentation)[https://www.freebsd.org/de/java/])
- Install minecraft server software under
/opt/minecraft(Available (here)[https://www.minecraft.net/en-us/download/server]) - Run it once for test and accept the eula (
java -Xmx4096M -Xms1024M -jar /opt/minecraft/server.jar nogui) - Install the
minecraftscript to/etc/rc.d - Create a user
minecraftand give it full permissions to/opt/minecraft - Add line
minecraft_enable="YES"in/etc/rc.conf - Execute
service minecraft startto start the server
Have fun!