Hi, I just got a vps and installed java and my server. But how can I start my server up and close the SSH client window without the server shutting down? I used to have a line and that had screen -r or screen -s in it. Does anyone have it?
Guess your running the server on a linux machine with screen installed so you'll just have to type "screen" then start your server with the normal script.
screen is a linux application that runs programs and allows you to disconnect-reconnect to your "screen" with the programs still running, it's awesome!
here is my server startup script:
if [ ! -d $LOGDIR ]; then mkdir $LOGDIR; fi
if [ -f server.log ]; then mv server.log $LOG; fi
if [ -f server.log.* ]; then rm server.log.*; fi
if [ -f $(ls worldedit.log*) ]; then rm worldedit.log*; fi
screen java -Xms4096M -Xmx6114M -jar craftbukkit-0.0.1-SNAPSHOT.jar nogui
As you can see you can also just type screen with whatever command (like start the server).
If you wana see your screen later just use
this will show the screens available, then use
screen -r [screen name from list]
This will connect to a screen. If for some reason your screen show attached (not detached) then you'll have to connect to it like this:
screen -dr [screen name from list]
If you log into SSH and you know you only have one screen running you can just type
to force a connection to the screen without entering the screen name.
If you want some more info on the wonderful screen app use google!
Hope this all made sense, good luck!
Private Mod Note
Rollback Post to RevisionRollBack
My public free build survival server: westmn.no-ip.org