Help - Search - Members - Calendar
Full Version: Loopy Logging?
Unknown Worlds Forums > Natural Selection > Natural Selection Discussion > General Server Discussion > Linux Server Support
bait
i run a dedicated ns server (newest version) on redhat linux; i've tried running it with both "log on" in the autoexec.cfg file, and as a command line argument. it does log, but it seems to be delayed. for instance, when a map loads i typically get:

L 10/12/2004 - 23:57:19: Loading map "co_core"
<lots of server vars...>
L 10/12/2004 - 23:57:19: Server cvar "sv_password" = ""
L 10/12/2004 - 23:57:19: Server cvar "sv_proxies" = "1"
L 10/12/2

it cuts off just like that. if people join the server and start a game, it will "finish" logging, or update the log later on, but not immediately.

i've searched the net, user groups and so forth to no avail. is this simply how hlds_l functions? i do have the disk space smile-fix.gif hehe.

thanks guys...
bait
so... i must have a rogue box then tounge.gif
Vadakill
No it's not a rogue machine, you've got some extra "log on" commands stuffed somewhere in there.

1. Do not put "log on" in your initial server command. Instead it should look something like this (substitute your info):

CODE

./hlds_run -game ns +ip 208.28.184.222 +port 27015 -debug


2. Remove or comment out any instances of "log on" in your server.cfg file.

3. Create an autoexec.cfg file and stick it in your ns directory. Copy and paste this info and put it in the file:

CODE


//
// autoexec.cfg
//   Server setup configuration file. This file is automatically executed once,
//   when the server is started.
//

//Location of the log files
logsdir logs

// maxplayers <number>
//   Default: 6
//   Sets how many players are allowed on the server at one time. The maximum is
//   32 players. The more players you allow, the greater the upstream bandwidth
//   you will require.
maxplayers 15

// log <on|off>
//   Default: off
//   Use this command to enable logging on the server. See also the Logging
//   Settings in 'server.cfg'.
log on

// logaddress <ip> <port>
//   Default: (none)
//   If logging is enabled, this command allows log data to be sent to a remote
//   address. The log data is transmitted as UDP data packets, which can be
//   parsed by third-party applications. You can also set the logaddress to the
//   IP and port of your Half-Life client and the log data will be displayed in
//   the client console.
//logaddress 127.0.0.1 27500

// servercfgfile <filename>
//   Default: "server.cfg"
//   Sets the name of the configuration file which is executed at each map
//   change.
servercfgfile "server.cfg"

//
// Load Initial Map
//   Here we load the first map that the server will run. Nobody can connect to
//   the server until a map is loaded.
//
map ns_altair


After that, all roguishness should go away.
bait
oddly enough, that did not work. i've built this php application that uses udp and rcon to control the server. i assumed that could be having an affect on things, so i ran hld_run from the command line only, with the above specified information. i am still getting that partial log nonsense. anyhow, i did get this working by redirecting the stdout to a file; same difference, i suppose.

thanks smile-fix.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.