Skip to content

Instantly share code, notes, and snippets.

@misuchiru03
Created July 8, 2019 19:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save misuchiru03/fef1362ed9d8a1b22d9ee208bd67ba5b to your computer and use it in GitHub Desktop.
Save misuchiru03/fef1362ed9d8a1b22d9ee208bd67ba5b to your computer and use it in GitHub Desktop.
Minecraft Server Systemd Service
[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