You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
984 B
23 lines
984 B
# /etc/conf.d/minecraft
|
|
#
|
|
# Minecraft - OpenRC scripts
|
|
# Copyright (C) 2024 Santic Zombie [email@santic-zombie.ru]
|
|
#
|
|
#
|
|
|
|
MINHEAP={{ MINHEAP }}
|
|
MAXHEAP={{ MAXHEAP }}
|
|
|
|
USER={{ server_user }}
|
|
GROUP={{ server_user }}
|
|
|
|
BASE="/home/{{ server_user }}/minecraft"
|
|
BACKUP_BASE="/home/{{ server_user }}/backups"
|
|
|
|
SCREENNAME="Minecraft"
|
|
|
|
WORLDS="{{ level_name }} {{ level_name }}_nether {{ level_name }}_the_end"
|
|
|
|
|
|
# https://aikar.co/2018/07/02/tuning-the-jvm-g1gc-garbage-collector-flags-for-minecraft/
|
|
#CUSTOMARGS="-XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1"
|
|
|