Created
May 4, 2018 15:14
-
-
Save Gentle/165f8592a2932e5e8b083b3c57f4483a to your computer and use it in GitHub Desktop.
Upstart Script für Minecraft
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
# 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