Server does not start with "screen"(VDS), without the "screen" starts normally. Use the "libcod2_1_0"(nomysql) Help please.
Error: "[screen is terminating]"
Printable View
Server does not start with "screen"(VDS), without the "screen" starts normally. Use the "libcod2_1_0"(nomysql) Help please.
Error: "[screen is terminating]"
Post startup line + OS
Have you tried:
instead of just using screen directly in your startup line?Code:screen -AmdS server
screen -x server
CentOS
//
LD_PRELOAD="/root/cod2/libcod2_1_0.so" screen ./run_server +set sv_maxclients 8 +set fs_game test +exec server.cfg +map_rotate +set net_ip 194.94.124.234 +set net_port 28969 +set dedicated 2
/== [screen terminating]
///////////////////////
chmod 755, all files!
//////////////////////
LD_PRELOAD="/root/cod2/libcod2_1_0.so" ./run_server +set sv_maxclients 8 +set fs_game test +exec server.cfg +map_rotate +set net_ip 194.94.124.234 +set net_port 28969 +set dedicated 2
/== normal start
You are trying to "inject" the .so into the "screen" process, which is obviously not the Call of Duty server...
Make a file called server.sh, enter:
Code:LD_PRELOAD="/root/cod2/libcod2_1_0.so" ./run_server +set sv_maxclients 8 +set fs_game test +exec server.cfg +map_rotate +set net_ip 194.94.124.234 +set net_port 28969 +set dedicated 2
And start it your old way:Code:chmod +x server.sh
Which is ofc cumbersome, because the screen session has no name then, hence rather start it as IzNoGoD pointed out, by entering the screen-session and simply type:Code:screen server.sh
Code:./server.sh
x works fine too
screen -r will fail when the screen is attached already, while -x never fails ^^
Ah oke, didnt know that. I thought it might be a typo
Thx, guys)) I dont have problem))
result: "screen -amdS cod2"
screen -rd ...
LD_PRELOAD...