[L4D2] Linux : "quit" kills the "screen"
Hello, Im having problems with server auto-restart for L4D2. I've got a plugin that will execute "quit" command in order to restart L4D2 server but the server never comes back online. I use screen to run the servers and i notice that when "quit" is performed it not only kills the L4D2 server but it also kills the Screen. Is there anything i can do to make it stop killing the screen?
|
Re: [L4D2] Linux : "quit" kills the "screen"
What's your commandline for srcds?
|
Re: [L4D2] Linux : "quit" kills the "screen"
Quote:
|
Re: [L4D2] Linux : "quit" kills the "screen"
|
Re: [L4D2] Linux : "quit" kills the "screen"
I guess i will have to use auto screen restart script and set a cronjob for checking.
|
Re: [L4D2] Linux : "quit" kills the "screen"
quit wont restart unless you have a proper batch for it, quit, does quit.
|
Re: [L4D2] Linux : "quit" kills the "screen"
Quote:
Or just setup another script that kills specific screens such as: Code:
screen -x server_name1 -X quit && You don't need a plugin to restart your server, you only need a few scripts and setup some crons. Script 1 - server 1 command line Script 2 - server 2 command line Script 3 - starts all server(s) by executing script 1, script 2, etc Script 4 - kills specifically named screens Script 1 (server1.sh) Code:
#!/bin/bash Code:
#!/bin/bash Code:
cd /path/to/server1.sh && ./server1.sh && Code:
screen -x SCREEN1 -X quit && |
Re: [L4D2] Linux : "quit" kills the "screen"
Quote:
|
Re: [L4D2] Linux : "quit" kills the "screen"
I never had any of the problems you're describing.
|
Re: [L4D2] Linux : "quit" kills the "screen"
Isn't the wrapper script (srcds_run) only restarting the server when the -autoupdate command is supplied?
./srcds_run -autoupdate -steam_dir /PATH/TO/STEAMCMD/steamcmd/ -steamcmd_script /PATH/TO/UPDATE/SCRIPT/l4d2.steam -game left4dead2 -maxplayers 8 -port 27024 +map c5m1_waterfront +ip xxxx" |
All times are GMT -4. The time now is 05:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.