Dragon 1 Posted July 8, 2002 Share Posted July 8, 2002 Whenever I close out my SSH session, the server shuts down. Anyway to prevent this? Link to comment Share on other sites More sharing options...
MatrixCPA Posted July 8, 2002 Share Posted July 8, 2002 One solution is to run the server inside of screen. In order to do the following: 1) type screen at the prompt; you will get a new prompt (sometimes after an info message that requires you hit a key) 2) start the server 3) hold down dntl and hit a then d; this will detach you from the screen window and drop you back to a prompt again 4) to reattach, type screen -r; this assumes you only have one instance of screen running If you need info on running multiple screens, just let me know. And the ; are just to separate what I'm saying, don't type them. Link to comment Share on other sites More sharing options...
Dragon 1 Posted July 8, 2002 Author Share Posted July 8, 2002 It's a remote server, running PuTTy to SSH into it. The CTRL+D didn't work, I assume that is for local use. I also have a ShoutCast server on here, when I close out the SSH session, that will continue to run. It'd be nice to have the JK2 server do the same Link to comment Share on other sites More sharing options...
JoezCool2 Posted July 8, 2002 Share Posted July 8, 2002 I beleive you have to CTRL A first and then CTRL D Link to comment Share on other sites More sharing options...
Dragon 1 Posted July 8, 2002 Author Share Posted July 8, 2002 Nope, CTRL+A just makes a funny character in my window. I'm not sitting at the server.... FYI. Link to comment Share on other sites More sharing options...
NerfYoda Posted July 8, 2002 Share Posted July 8, 2002 It sounds like youre not starting the server from screen. Check the Linux HOWTO sticky for more info on it. The poor man's way of not having the server stop when you kill your shell session is to run the server process in the background. Enter an "&" after the command to have it run in the background. If you wanted to restart the server you'll need to kill the process & run it manually again. IMO the BEST way to run it is from the startjk2/holdjk2 method described in the Linux sticky. It's easy to log in and out of the server console w/ screen & the holdjk2 script will restart the server automatically when i enter the quit command in the console. It's never failed me yet. Link to comment Share on other sites More sharing options...
crazy_elmo Posted July 9, 2002 Share Posted July 9, 2002 JoezCool2 is wright, I also control my server throught Putty, and to detach the screen you have to press and hold CTRL, then press A, and then D. you can also start your server like this : screen -A -m -d -s jk2 ./jk2ded +exec server.cfg This way you won't have to detach your screen, but If you want to see if your server boots correct, Just type screen -r, hope this helps you ! Link to comment Share on other sites More sharing options...
KnightHawk420 Posted July 9, 2002 Share Posted July 9, 2002 To detach in screen.... it's Step 1. "CTRL-A" Step 2. "D" NOT "CTRL-A", then "CTRL-D" Link to comment Share on other sites More sharing options...
MatrixCPA Posted July 9, 2002 Share Posted July 9, 2002 Ok, first off, this technique works perfectly when using ssh (via putty or just plain telnet). Second, I did say hold down cntl (dntl really but that was a typo ) and hit a then d. Well, I know you purists say that it's hold down cntl hit a then release cntl and hit d....well....it works both ways and I feel it confuses the new folks less my way--ymmv. If the cntl commands aren't working via ssh, then you probably don't have your client set up for the right emulation. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.