VaultHuntersBackupNew/serverconfig/auto_restart-server.toml
2023-12-10 05:30:19 +00:00

49 lines
2.4 KiB
TOML

#Options for restarting:
[restart]
#Is the server started by an external restart script?
use_external_restart_script = false
#Command that is executed on Server stopped to restart the server. Only called if "[restart, use_external_restart_script]" is false.
restart_command = "java -Xms28G -Xmx28G -Dfml.readTimeout=60 -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=40 -XX:G1MaxNewSizePercent=50 -XX:G1HeapRegionSize=16M -XX:G1ReservePercent=15 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=20 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Daikars.new.flags=true -Dusing.aikars.flags=https://mcflags.emc.gs @libraries/net/minecraftforge/forge/1.18.2-40.2.0/unix_args.txt nogui"$@"
#Option for auto restarting:
[auto_restart]
#Times before an auto restart of the server, a restart warning should be shown.
#Examples:
# - 5s - For a message 5 seconds before a restart
# - 7m - For a message 7 minutes before a restart
# - 2h - For a message 2 hours before a restart
warning_times = ["4h", "3h", "2h", "1h", "30m", "10m", "5m", "2m", "1m", "10s", "5s", "4s", "3s", "2s", "1s"]
#Times in 24-hour format on which the server will automatically restart
times = ["13:00", "01:00", "18:00"]
#Should the server be automatically restarted when it crashes.
on_crash = true
#Should the Server do automatic restarts?
enabled = true
#Options for restart, if the server is empty:
[on_empty_restart]
#Delay after the server should restart, if it is empty.
#Examples:
# - 5s - For a delay 5 seconds
# - 7m - For a delay 7 minutes
# - 2h - For a delay 2 hours
delay = "10m"
#Should the server restart, if no players are online?
enabled = false
#Options for restart, if the tps of server or its dimensions are low:
[low_tps_restart]
#Delay, that the server must be below the defined TPS level, in order for it to be restarted.
#Examples:
# - 5s - For a delay 5 seconds
# - 7m - For a delay 7 minutes
# - 2h - For a delay 2 hours
delay = "1m"
#TPS level below which the server is restarted, if it lasts for a specified time.
#Range: 0.0 ~ 20.0
minium_tps_level = 0.0
#Should the server restart, if it is below a tps level for a specified time?
enabled = false