Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- while :
- do
- 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;
- REP="$(cat $(ls -t crash-reports/* | head -1))";
- 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;
- echo "Press [Ctrl+C] to exit the script, else we'll continue in 10 seconds...";
- sleep 10;
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement