diff options
| author | Luke Hoersten <[email protected]> | 2021-07-18 20:17:16 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2021-07-18 20:17:16 -0500 |
| commit | 769d10b216d52482eca1de9ca9491c3ab8fc3f5f (patch) | |
| tree | 1e2994544c16a2b3d8aa67a908210c605c141e2f /minecraft/server/templates | |
| parent | 9bb76f57d55ca5a9e502a34e504a21904d4157a1 (diff) | |
Updated minecraft to be multi-world and minimized world size.
Diffstat (limited to 'minecraft/server/templates')
| -rw-r--r-- | minecraft/server/templates/[email protected] (renamed from minecraft/server/templates/minecraft.service.j2) | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/minecraft/server/templates/minecraft.service.j2 b/minecraft/server/templates/[email protected] index 0f0e91a..df1defb 100644 --- a/minecraft/server/templates/minecraft.service.j2 +++ b/minecraft/server/templates/[email protected] @@ -1,14 +1,12 @@ [Unit] -Description=Minecraft Server +Description=Minecraft Server %I Documentation=https://minecraft.gamepedia.com/Tutorials/Setting_up_a_server - -Wants=network.target After=network.target [Service] User={{minecraft_user}} Group={{minecraft_user}} -WorkingDirectory={{minecraft_dir}} +WorkingDirectory={{minecraft_parent_dir}}/minecraft/%i Restart=on-failure RestartSec=20 5 ExecStart=/usr/bin/java -Xms{{minecraft_mem}} -Xmx{{minecraft_mem}} -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 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar server.jar nogui |
