Problem Starting Server with out it need the terminal open

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Jagris

New Member
Jul 29, 2019
2
0
0
When my SSH connection closes to my VPS the server will stop. So I am wondering if there is an argument (or some other way) I can get the server to run with out requiring an active connection. It is a pain to keep the connection open because even if the computer is on it will time out after a couple of hours anyway.

Running FTB Unleashed on CentOS 5 64 bit
 
Last edited:

oppositeZERO

New Member
Jul 29, 2019
64
0
0
You need to use screen.

You can install it using yum, so yum install screen

The simple way to actually is it is to type screen then your usual start command then use ctrl +a +d to exit the screen session and screen -r to go back to it.

That's's a very simplistic way about it, but if you google around for screen and minecraft you should find a heap of info.

If you're capable I'd also have a look at this init script, it uses screen but does it very nicely, and makes managing a server very simple once you have it setup.
https://github.com/superjamie/minecraft-init-script

Cheers
 

Connor Gavitt

New Member
Jul 29, 2019
1,091
-1
0
Also to get back into the screen use

screen -r name

to list them

screen -ls

if another person is in the screen you can detach it so you can view it with

screen -d name
 

Jagris

New Member
Jul 29, 2019
2
0
0
Thanks a lot guys I got it going. screen was already installed. But for anyone who it isn't this is what I found works:

Code:
yum install screen.x84_64
[cd into the server directory]
[cntrl + A + C]
screen ./ServerStart.sh

let the server fully boot then:
Code:
[cntrl + A + D]

everything is running smoothly. Closed the SSH session and server is still going well.