Created
April 22, 2020 16:43
-
-
Save islands04/8da8e2b707006095bd0dd69a1e974ce6 to your computer and use it in GitHub Desktop.
Minecraft Java Edition Server SystemD Unit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Minecraft Java Edition Service | |
After=network.target | |
[Service] | |
Type=Simple | |
WorkingDirectory=/opt/minecraft/java-server | |
ExecStart=/usr/bin/java -Xmx2048M -Xms2048M -jar minecraft-1.14.4-server.jar nogui | |
TimeoutStopSec=20 | |
Restart=on-failure | |
StandardOutput=append:/var/log/minecraft-java-stdout.log | |
StandardError=append:/var/log/minecraft-java-stdout.log | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment