PDA

View Full Version : BUG: -pidfile problem


Funar
01-12-2005, 09:39 AM
When supplying -pidfile on the commandline, the server attempts to make a very long filename consisting of the actual commandline arguements. Here's a snippet from the console:

HLDS installation up to date
Console initialized.
Unable to open pidfile (-pidfile /opt/steam/hl2mp.pid +maxplayers 10 +ip 64.9.120.200:27015
+map dm_overwatch -steam -defaultgamedir hl2)

It's trying to create a file named "-pidfile /opt/steam/hl2mp.pid +maxplayers 10 +ip 64.9.120.200:27015 +map dm_overwatch -steam -defaultgamedir hl2"

Here's the actual commandline I'm sending to srcds_run:

srcds_run -steamuser username -steampass password -game hl2mp -autoupdate -ignoresigint \
-norestart -gdb /usr/bin/gdb -debug -debuglog /opt/steam/hl2mp.log -pidfile /opt/steam/hl2mp.pid \
+maxplayers 10 +ip 64.9.120.200:27015 +map dm_overwatch

h2ox
01-12-2005, 08:15 PM
Use quotes ?

-pidfile "/opt/steam/hl2mp.pid"

Funar
01-12-2005, 09:40 PM
Na, it's a confirmed bug. I sent an e-mail to linux@valvesoftware.com at the same time as my post. I received a reply indicating a fix was in the works.

Hagen
01-13-2005, 06:10 AM
Fubra, maybe setting "-pidfile /opt/steam/hl2mp.pid" as last argument could fix this issue.

Funar
01-13-2005, 08:09 AM
Tried that as well. srcds_run changes the order of the arguements. I have a temporary fix in place, but I'll wait for a patch from Valve.

Hagen
01-13-2005, 10:50 AM
Originally posted by Funar
srcds_run changes the order of the arguements. [/B]
No luck. One more bug to be fixed by valve. :(

z-lite
01-15-2005, 04:51 PM
Originally posted by Funar
Tried that as well. srcds_run changes the order of the arguements. I have a temporary fix in place, but I'll wait for a patch from Valve.
What fix did you use to circumvent the issue?

Funar
01-15-2005, 06:11 PM
I posted my "workaround" patch to srcds_run here:
http://multiplayergamers.com/modules.php?op=modload&name=News&file=article&sid=278

Tested on Fedora Core 1.