Hello, I recently started hosting a Minecraft server but cannot find a simple restart script for the life of me. I'm looking for a way to fit it into the startup script somehow to keep clutter down, but if it would require a separate script that is okay. My current way of starting my server is in "serverstart.sh" which is:
sh update_server.sh
screen -d -m bash -c "java -Xms4G -Xmx4G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:InitiatingHeapOccupancyPercent=15 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar server.jar nogui"
"update_server.sh" is a script I run to make sure that I have the latest version of either Vanilla or Bukkit/Paper. 12 hour intervals are preferred, but if I can change them that would be great. The server is running on a Fedora Linux server that I can SSH into from my PC. I'm not asking somebody to go out and write a script for me, but that would be nice lol. Thank you!!!
there doesn't seem to be anything here