Milton,

Brilliant! That's welcome news.

Any idea why the forked mode might be crashing, though?

Chris

Milton Ngan wrote:
> Yes you can. This is basically what the forked mode is doing with all the ## 
> expansion. 
>
> I have two wrapper scripts that I use to do this sort of thing. The first 
> just loops through the count launching the helper script with the number and 
> action. The second then substitutes in the $NUM into the command line. To 
> make the launching faster, I set the RDTSC_FREQUENCY environment variable so 
> each instance doesn't have to run the calibration step. 
>
> These are just snippets from the init scripts that should give you some idea 
> of what to do. 
>
> =====
>
> if [ "$ACTION" == "start" -o "$ACTION" == "restart" ]
> then
>         cd "$SRCDS_ROOT"
>         #RDTSC_FREQUENCY=disabled
>         RDTSC_FREQUENCY=`$SRCDS_ROOT/srcds_run -game left4dead2 +quit | perl 
> -n -e 'print $1 if (/FREQUENCY to (\d+)/);'`
>         export RDTSC_FREQUENCY
> fi
> for NUM in `seq 1 $SRCDS_COUNT`
> do
>         $HELPERSCRIPTNAME $NUM $ACTION
>         RETVAL="$?"
>         if [ $RETVAL != 0 ]
>         then
>                 exit $RETVAL
>         fi
> done
>
> =====
>
>         MAP=c1m1_hotel
>         NETCONPORT=$(($NUM - 1 + 9000))
>         STEAMPORT=$(($NUM - 1 + 27000))
>         CFG=`printf server/server%02d.cfg $NUM`
>
>         srcds_run -game left4dead2 +map $MAP +exec $CFG \
>               -netconport $NETCONPORT \
>               -netconpassword <password> \
>               -steamport $STEAMPORT
>
> =====
>
> -----Original Message-----
> From: hlds_linux-boun...@list.valvesoftware.com 
> [mailto:hlds_linux-boun...@list.valvesoftware.com] On Behalf Of Chris Boot
> Sent: Wednesday, October 28, 2009 10:15 AM
> To: Half-Life dedicated Linux server mailing list
> Subject: Re: [hlds_linux] Left 4 Dead 2 Demo Dedicated Server Available
>
> Hi,
>
> Hmm, after more testing I can't seem to run any number of forks 
> properly, with children core dumping regularly when I use a forked 
> server... A non-forked server seems to run just fine. Anyone else have 
> this problem?
>
> I'm using a 64-bit Debian Lenny server (HP DL140 G3).
>
> Can I run several instances out of the same install directory without 
> using forks? E.g. running several different servers on different ports 
> all out of the same directory?
>
> Cheers,
> Chris
>
> Chris Boot wrote:
>   
>> Hi,
>>
>> I'm trying to run a forked server with 10 child processes, but if I try 
>> and fork more than 2 children all the children crash out with a core 
>> dump. Any ideas?
>>
>> My command-line is like this:
>>
>> ./srcds_run \
>>     -console \
>>     -game left4dead2 \
>>     -debug \
>>     -pidfile /srv/steam/l4d2/demo_dir1/left4dead2_demo/srcds.pid \
>>     -fork 3 \
>>     -netconport 90## -netconpassword <snip> \
>>     +ip <snip> +hostport 27014+## \
>>     +map c5m1_waterfront
>>
>> My server.cfg is like this:
>>
>> hostname "<snip>"
>> rcon_password "<snip>"
>> sv_allow_wait_command 0
>> sv_alltalk 0
>> sv_alternateticks 0
>> sv_cheats 0
>> sv_clearhinthistory 0
>> sv_consistency 1
>> sv_contact "bo...@l4dprc.org"
>> sv_downloadurl ""
>> sv_lan 0
>> sv_log_onefile 0
>> sv_logbans 1
>> sv_logecho 0
>> sv_logfile 0
>> sv_logflush 0
>> sv_logsdir "logs"
>> sv_maxcmdrate 100
>> sv_unlag 1
>> sv_maxunlag .5
>> setmaster add 68.142.72.250:27011
>> setmaster add 72.165.61.189:27011
>> sv_steamgroup <snip>
>> sv_steamgroup_exclusive 1
>>
>> Many thanks,
>> Chris
>>
>> Jason Ruymen wrote:
>>   
>>     
>>> As you've already seen, the dedicated server files for the Left 4 Dead 2 
>>> Demo are now available.  The game name is left4dead2_demo.  We're still 
>>> doing some final checks for the client, but that should be going live soon.
>>>
>>> Jason
>>>
>>>
>>> _______________________________________________
>>> To unsubscribe, edit your list preferences, or view the list archives, 
>>> please visit:
>>> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>>>   
>>>     
>>>       
>> _______________________________________________
>> To unsubscribe, edit your list preferences, or view the list archives, 
>> please visit:
>> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>>   
>>     
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please 
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please 
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>   

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

Reply via email to