PDA

View Full Version : Linux log files.


affinity
12-13-2007, 04:33 PM
I am running a dedicated linux box with cod4 running on it. I'm unable to locate any log files in the /main directory (or any other directory for that matter). The log file I'm looking for is games_mp.log Cannot find it anywhere on my box. Here is the log portion of my server.cfg where it is set to create it. Just wondering where I should be looking for this file as well if it should be created automatically. Thanks.

Server.cfg
--------------
// Log Settings

set g_logsync "2" // 0=no log, 1=buffered, 2=continuous, 3=append

set logfile "1" // 0 = NO log, 1 = log file enabled

set g_log "games_mp.log" // Name of log file, default is games_mp.log

set sv_log_damage "1"

GreyMaster
12-13-2007, 05:14 PM
Check your fs_basepath, fs_homepath, fs_game. Log must be in fs_game folder. You can check this pathes with your rcon.

bernholdt
12-13-2007, 05:46 PM
When running gameservers on linux the system create a gameinstance to run the game from, with the logfiles & pb files in it.

if you are running your game server as a root user (not recomended) you log file will be located in this directory
/root/.callofduty4/main
if your are running under a different user usually this will be located under /home/username/.callofduty4/main

Hope it helps you

GreyMaster
12-14-2007, 03:39 AM
When running gameservers on linux the system create a gameinstance to run the game from, with the logfiles & pb files in it.

if you are running your game server as a root user (not recomended) you log file will be located in this directory
/root/.callofduty4/main
if your are running under a different user usually this will be located under /home/username/.callofduty4/main

Hope it helps you

True. But directory /<loginname>/.callofduty4 always created automaticaly when server start. But if u set fs_homepath - server logs will be there /<fs_homepath_your_specified>/main, pb logs will be at /<fs_homepath_your_specified>/pb

affinity
12-14-2007, 10:59 AM
Thanks guys. Did not see this directory because of two things: 1. Call of Duty created it. and 2. It was marked hidden. Found the file under /username/.callofduty4/main.

Also in that folder were the console_mp.log and gameserver.log. Very nice to find.

Wish I would have known I could have also set the fs_homepath var as well. That would have saved me some headaches. :)