Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- !#/bin/sh
- /usr/bin/java -Xms512M -Xmx1008M -jar /path/to/minecaft-server/minecraft-server.jar nogui
- To set the crontab to run this at system boot create the above as minecraft-server.sh
- to add the crontab entry for the desired NON ROOT user that will run the minecraft server type crontab -e while logged into that user session. I repeat DO NOT use root user to run the minecraft server or baby yoda will eat your soul.
- add the following text to create the crontab entry that willl start the system service at every reboot
- @reboot /path/to/minecraft-server.sh
- save the crontab entry. done. your minecraft server will start automagically every system reboot
Add Comment
Please, Sign In to add comment