Last active
May 1, 2022 21:18
-
-
Save slashtechno/92ed450cbbc935be2f472d35e67cf12f to your computer and use it in GitHub Desktop.
systemd service to run MC server
This file contains 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 server service | |
[Service] | |
User=pi | |
WorkingDirectory=/home/pi/minecraft-servers/survival-1.18.2 | |
ExecStart=/usr/bin/java -Xms512M -Xmx2048M -jar /home/pi/minecraft-servers/survival-1.18.2/spigot-1.18.2.jar nogui | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment