Skip to content

Instantly share code, notes, and snippets.

@Gentle
Created May 4, 2018 15:14
Show Gist options
  • Save Gentle/165f8592a2932e5e8b083b3c57f4483a to your computer and use it in GitHub Desktop.
Save Gentle/165f8592a2932e5e8b083b3c57f4483a to your computer and use it in GitHub Desktop.
Upstart Script für Minecraft
# Start when system enters runlevel 2 (multi-user mode).
start on runlevel 2
# Start delayed_job via the daemon control script.
script
cd /path/to/server
exec /usr/bin/env java -server -Xms10G -Xmx10G -jar forge-1.12.2-14.23.3.2655-universal.jar nogui
end script
# Restart the process if it dies with a signal
# or exit code not given by the 'normal exit' stanza.
respawn
# Give up if restart occurs 10 times in 90 seconds.
respawn limit 10 90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment