Created
July 8, 2019 19:16
-
-
Save misuchiru03/fef1362ed9d8a1b22d9ee208bd67ba5b to your computer and use it in GitHub Desktop.
Minecraft Server Systemd Service
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 | |
Wants=network.target | |
After=network.target | |
[Service] | |
User=minecraft | |
Group=minecraft | |
Nice=5 | |
WorkingDirectory=/usr/local/games/minecraft | |
ExecStart=/usr/local/games/minecraft/minecraft-server | |
Restart=on-failure | |
RestartSec=20 5 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment