Advertisement
TheTrickster

Lizzy Server Start Script

Nov 28th, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.60 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. while :
  4. do
  5.  
  6. java -XX:+UseG1GC -Dsun.rmi.dgc.server.gcInternal=214783646 -Dfms.readTimeout=60 -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M -Xnoclassgc -Xmx12G -Xms12G -jar forge-1.12.2-14.23.5.2838-universal.jar nogui;
  7.  
  8. REP="$(cat $(ls -t crash-reports/* | head -1))";
  9.  
  10. echo -e "Looks like the server crashed? Here's the latest crash log...\r\n\r\n $REP " | mail -s "Minecraft Server Reboot" USER@DOMAIN.COM;
  11.  
  12. echo "Press [Ctrl+C] to exit the script, else we'll continue in 10 seconds...";
  13. sleep 10;
  14.  
  15. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement