Created
August 3, 2014 05:46
-
-
Save chris-x86-64/0e6d9936651572db16c9 to your computer and use it in GitHub Desktop.
Minecraft semi-auto startup using Upstart. Used in conjuction with the "Auto-Shutdown" mod.
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
description "Minecraft SemiAuto-Startup" | |
start on socket PROTO=inet PORT=25565 | |
stop on runlevel [06] | |
console log | |
chdir /home/minecraft/whatever | |
setuid minecraft | |
setgid minecraft | |
respawn | |
respawn limit 20 5 | |
exec /usr/bin/java -Xms1536M -Xmx2048M -jar minecraft_server.jar nogui |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This didn't work as Minecraft doesn't handle bridged sockets.