• Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

Server How to close SSH connection without killing the kf2 process

fenix2089

FNG / Fresh Meat
Nov 17, 2017
2
0
29
Hi very good, I have a vps in which is installed KF2, the thing is that when closing the connection by means of ssh the server is turned off.

I had a way to leave it on by putting this "&" when running it, but by doing this when changing map the server freezes, there's some way to leave it on even if it's not in putty and leave it on 24/7.
 
Use software called "screen". https://www.rackaid.com/blog/linux-screen-tutorial-and-how-to/#starting. In a nutshell, you can create multiple "screens" that you can run software in, then detach from it and the software will remain running. You have to detach from a screen before closing the terminal or else the same thing will happen if you didn't use a screen.

The few important commands:
screen -S <screen name> (creates a screen)
screen -r <screen name> (reattaches to a screen)
screen -ls (lists screens)
ctrl + AD (when in a screen, detaches from it)
 
Upvote 0