Created
April 24, 2020 09:06
-
-
Save jesgeerts/0385f8f56f9f2970e2ad38c0b16d3361 to your computer and use it in GitHub Desktop.
Starting a minecraft server on raspi 4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while true | |
do | |
java -Xmx1G -Xms1G -jar server.jar | |
echo "Waiting 2 seconds to restart server" | |
sleep 2 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment