|
Screen Termination
|
| Author |
Message |
BrutalGoerge
Member
  
Posts: 90
Group: Registered
Joined: Dec 2007
Status:
Offline
|
Screen Termination
I know tf2 has built in restart on crash.
When i put 'quit' in console, that 'Will restart in 10 seconds' comes up, but screen terminates before it can.
Is there a way to force screen not to terminate when quit is put in console.
The line is pretty much the one off the srcds.com lilux tutorial
screen -A -m -d -S server ./srcds_run -console -game tf +map pl_goldrush +maxplayers 25
|
|
| 05-04-2008 05:02 PM |
|
 |
disco
Junior Member
 
Posts: 4
Group: Registered
Joined: Apr 2008
Status:
Offline
|
RE: Screen Termination
Screen will only terminate if the process inside it terminates. Add -autoupdate to your command line to get it to come back up, alternatively you have to use some kind of watcher script
|
|
| 05-06-2008 01:51 AM |
|
 |
css
Junior Member
 
Posts: 39
Group: Registered
Joined: Apr 2008
Status:
Offline
|
RE: Screen Termination
What do you want to do after "quit" command?
You can first start plain screen to open new shell:
screen -A -m -d -S server
Then start the srcds server:
./srcds_run -console -game tf +map pl_goldrush +maxplayers 25
Now when you quit the srcds server, you'll get back to the shell. When you quit shell (write "exit" in shell line), you'll exit the screen too.
If you want to go real pro with screens, you can create multiple screen windows inside one screen. Press Ctrl-c (c as in "create") while inside the screen. That'll create new screen inside the other. Then start another server in the new screen window for example. Then press Ctrl-n (as in "next") to access the first started screen. Then when you've finished running the servers (or something), you can close either of the screens by Ctrl-k (as in "kill").
|
|
| 05-06-2008 03:09 AM |
|
 |
BrutalGoerge
Member
  
Posts: 90
Group: Registered
Joined: Dec 2007
Status:
Offline
|
RE: Screen Termination
ahh, adding autoupdate did the trick.
Thanks a million.
From what I gathered, autoupdate no longer worked to update the server if one was available on restart, so I just left it out.
|
|
| 05-07-2008 08:50 AM |
|
 |