Created
May 30, 2012 11:41
-
-
Save LunNova/2835728 to your computer and use it in GitHub Desktop.
Startup script for Grichecth
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/sh | |
| while true | |
| do | |
| screen -t "MinecraftServer" -S "lk20" bash -c 'java -Xms17000M -Xmx17000M -jar bukkit.jar nogui ; exit' & | |
| screen_pid=$! | |
| wait $screen_pid | |
| echo "If you want to completely stop the server process now, press Ctrl+C before the time is up!" | |
| echo "Rebooting in:" | |
| for i in 5 4 3 2 1 | |
| do | |
| echo "$i..." | |
| sleep 1 | |
| done | |
| echo "Rebooting now!" | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment