Skip to content

Instantly share code, notes, and snippets.

@chris-x86-64
Created August 3, 2014 05:46
Show Gist options
  • Save chris-x86-64/0e6d9936651572db16c9 to your computer and use it in GitHub Desktop.
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.
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
@chris-x86-64
Copy link
Author

This didn't work as Minecraft doesn't handle bridged sockets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment