Skillkiller

Auto Restart Skript

Feb 11th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.32 KB | None | 0 0
  1. #!/bin/bash
  2. echo "Starte Server!"
  3. while true
  4. do
  5. java -Xmx2G -Xms1G -XX:MaxPermSize=128m -jar "TekkitLegends.jar" nogui
  6. echo "If you want to completely stop the server process now, press Ctrl+C before the time is up!"
  7. echo "Rebooting in:"
  8. for i in 5 4 3 2 1
  9. do
  10. echo "$i..."
  11. sleep 1
  12. done
  13. echo "Rebooting now!"
  14. done
Add Comment
Please, Sign In to add comment