Originally Posted by
suck000
I installed libcod and i have a problem , i am stuck at step 6.
I started cod2 server with libcod and everything ok. But how i'll keep it running ??? Any commands for that ? i tried screen didn't work i think.
screen command is for server without libcod. But mine is with , what to do ? If tmux command is running can you give me how to write it ?
The easiest way is proably to create a simple shell script (name it 'myserver.sh'), put in your cod2 dir and then launch it from the screen e.g 'screen sh myserver.sh'
PHP Code:
#!/bin/bash
export LD_PRELOAD="$HOME/cod2_1_0/libcod2_1_0.so" # Point to your lib
PARAMS="+set fs_game myserver +set dedicated 2 +set net_port 28960 +exec config.cfg" # Your server launch options
"./cod2_lnxded" "$PARAMS"
exit 1