Skip to content

Instantly share code, notes, and snippets.

@lachlandcp
Last active May 20, 2019 21:55
Show Gist options
  • Save lachlandcp/dbc2150b4d36ace429a432b9b6e2eebe to your computer and use it in GitHub Desktop.
Save lachlandcp/dbc2150b4d36ace429a432b9b6e2eebe to your computer and use it in GitHub Desktop.
[Unit]
Description=start and stop the minecraft-server
[Service]
WorkingDirectory=/sharedfolders/SSDSpare/Minecraft
User=minecraft
Group=minecraft
Restart=always
RestartSec=15
ExecStart=/usr/bin/java -Xms512M -Xmx2500M -jar spigot_server.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