Posts: 229
Threads: 38
Joined: Dec 2007
Reputation:
1
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
Posts: 21
Threads: 1
Joined: Apr 2008
Reputation:
0
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
Posts: 482
Threads: 6
Joined: Apr 2008
Reputation:
5
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").
Posts: 229
Threads: 38
Joined: Dec 2007
Reputation:
1
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.