mail[Wesnoth-commits] r24531 - /branches/1.4/utils/mp-server/run_server


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by soliton . de on March 11, 2008 - 17:58:
Author: soliton
Date: Tue Mar 11 17:58:41 2008
New Revision: 24531

URL: http://svn.gna.org/viewcvs/wesnoth?rev=24531&view=rev
Log:
* use 4 threads now because of the sharded network worker threads but keep 30 
for 1.2

Modified:
    branches/1.4/utils/mp-server/run_server

Modified: branches/1.4/utils/mp-server/run_server
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/1.4/utils/mp-server/run_server?rev=24531&r1=24530&r2=24531&view=diff
==============================================================================
--- branches/1.4/utils/mp-server/run_server (original)
+++ branches/1.4/utils/mp-server/run_server Tue Mar 11 17:58:41 2008
@@ -9,8 +9,11 @@
 PARAMETERS=$*
 SERVERBASE=$HOME/servers/$SERVER
 SOURCE=$HOME/source/trunk
+THREADS=4
+
 case $SERVER in
        1.2 )   SOURCE=$HOME/source/1.2
+               THREADS=30
                ;;
        * )
 esac
@@ -34,7 +37,7 @@
                REV=$(ls -l $SERVERBASE/build | sed -e 
's,.*wesnothd-\(svn-.*\)_.*/,\1,')
                cd $SERVERBASE/build || exit 1
                [ -x bin/wesnothd-$SERVER ] || exit 1
-               nice -n 3 bin/wesnothd-$SERVER -c $SERVERBASE/wesnothd.cfg 
--port $PORT --threads 30 $PARAMETERS > 
$SERVERBASE/logs/wesnothd.$DATE.$REV.log 2>&1 &
+               nice -n 3 bin/wesnothd-$SERVER -c $SERVERBASE/wesnothd.cfg 
--port $PORT --threads $THREADS $PARAMETERS > 
$SERVERBASE/logs/wesnothd.$DATE.$REV.log 2>&1 &
                PID=$!
                echo -n "started $SERVER server (revision: $REV, pid: $PID) 
at: "; date
                cd $SERVERBASE




Related Messages


Powered by MHonArc, Updated Tue Mar 11 18:21:06 2008