Created
June 3, 2014 00:08
-
-
Save whilb/6898ec4010dffa5f42bc to your computer and use it in GitHub Desktop.
This file contains 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
while true | |
do | |
java -XX:MaxPermSize=256M -Xmx456M -Xms456M -jar server.jar | |
echo "Server has stopped!" | mail -s subject user@gmail.com | |
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