The Silent-Bob Edonkey Server
The Server with the necessary *OOMPH*

An important note about hard-/softlimits of Lugdunum dserver:
It is really important that the hardlimit isn greater than the softlimit, as you will withdrwa files/sources from the network otherwise.


For a Linux-Donkey-Server with more than 1000 clients you HAVE to check the user-limits, or the server will cap at 1015 or 1016 users. This can be repaired quite simply by ulimit'ing the "max. open files". In the simplest case with "ulimit -n 32000" as root. In order to run it from a user account (you don't want the server running with root rights) one must use further tricks. I unfortunatly do not have all the information.

I do it like this:

#!/bin/bash
#run as root
ulimit -n 64000
su - DONKEYUSER -c 'screen -S dserver -dm ~/ed2kserver/runit.sh'
sleep 10
~/ed2kserver/tools/tune.sh


#!/bin/bash
# runit.sh
cd ~/ed2kserver
while [ 1 ]
do
./dserver
done

tune.sh contains the nbuser stuff.

 Index    Technical    FAQ    Links   Contact