I tweaked this script, to use the UDPsoft ping booster and I don't get any undefined 
symbol errors.
this script will also log crashes, and restart your server.  I called the script hl 
and launch this with screen.

screen -A -m -d -S cs1 ./hl

#!/bin/sh
#PATH=$PATH:~/halflife
#cd ~/halflife


#GAME=${1:+-game $1}
#PORT=${2:+-port $2}
#shift 2
#XTRA=$*

failcount=0
while : ; do
        start=`date '+%d%H%M%S'`
        start1=`date`
        echo "hlds started at $start1" >>hlds.log
        rm -f tfc/cust*
#        hlds_l $GAME $PORT +exec startup.cfg $XTRA 2>/dev/null >/dev/null
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
        saver=$LD_PRELOAD
export LD_PRELOAD=./booster.so
./hlds -game cstrike -debug +map de_aztec +maxplayers 22 +sys_ticrate 10000 
+sv_maxupdaterate 100 $*
export LD_PRELOAD=$saver
        stop=`date '+%d%H%M%S'`
        stop1=`date`
        echo "hlds crashed at $stop1" >>hlds.log
        t=`expr $stop - $start`
        if test 0 -le $t -a $t -lt 60 ; then
                failcount=`expr $failcount + 1`
        else
                failcount=0
        fi
        if test $failcount -gt 5 ; then
                exit 1
        fi
        sleep 10
done

# EOF

_______________________________________________
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