Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. # CPU cores
  4.  
  5. CPU_COUNT=4
  6.  
  7. # Memory
  8.  
  9. MEMORY_OPTS='-Xmx12G -Xms12G'
  10.  
  11. # Java garbage collection
  12.  
  13. JAVA_OPTS="-XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing -XX:+AggressiveOpts -XX:+UseFastAccessorMethods -XX:ParallelGCThreads=${CPU_COUNT}"
  14.  
  15. # Minecraft version
  16.  
  17. MC_VERSION='1.7.10'
  18.  
  19. #KCauldron Version
  20.  
  21. VERSION='1614.199'
  22.  
  23. SERVICE="pw.prok:KCauldron:${MC_VERSION}-${VERSION}"
  24.  
  25. #Server Directory (Use: $(dirname "$(readlink -fn "$0")") to install in same directory as KBootstrap, or use a name to make a folder instead)
  26.  
  27. DIRECTORY="$(dirname "$(readlink -fn "$0")")"
  28.  
  29. ###################
  30.  
  31. # Launch server
  32.  
  33. while true
  34. do
  35.  
  36. java -jar KBootstrap-0.3.1-app.jar -j "$MEMORY_OPTS $JAVA_OPTS" -d $DIRECTORY -r $SERVICE
  37.  
  38. echo Running Restart Script:
  39. sleep 1
  40.  
  41. echo "If you want to completely stop the server process now, press Ctrl+C before the time is up!"
  42. echo "Rebooting in:"
  43. for i in 10 9 8 7 6 5 4 3 2 1
  44. do
  45. echo "$i..."
  46. sleep 1
  47. done
  48. echo "Rebooting now!"
  49.  
  50. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement