Created
February 28, 2012 05:20
-
-
Save ctrl-freak/1929909 to your computer and use it in GitHub Desktop.
Screen "Attach here and now" for Server
This file contains hidden or 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
| user@ctrl-vps:~$ cat /usr/local/sbin/minecraft | |
| #!/bin/bash | |
| screen -D -RR minecraft ~/minecraft/minecraft.sh | |
| user@ctrl-vps:~$ cat ~/minecraft/minecraft.sh | |
| #!/bin/sh | |
| BINDIR="$(dirname "$(readlink -fn "$0")")" | |
| cd "$BINDIR" | |
| java -Xincgc -Xmx512M -jar craftbukkit.jar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment