Add some throttling parameters to ipfireseeder

and add the new final iso torrent to rootfile
This commit is contained in:
Arne Fitzenreiter
2008-11-03 21:47:55 +01:00
parent 4b5f99b83f
commit 7a22b0f676
2 changed files with 8 additions and 4 deletions

View File

@@ -20,10 +20,14 @@ case "${1}" in
start)
boot_mesg "Starting IPFire Seeder..."
cd /var/log/seeder
loadproc screen -dmS seeder /usr/bin/rtorrent -o port_range=35700-35705 \
loadproc screen -dmS seeder /usr/bin/rtorrent -o port_range=35700-35700 \
-o download_rate=180 -o upload_rate=15 \
-o min_peers=10 -o max_peers=30 \
-o min_peers_seed=1 -o max_peers_seed=5 \
-o max_uploads=3 \
/var/ipfire/seeder/*.torrent
if ! grep -q "35700:35705" /var/ipfire/xtaccess/config ; then
echo "tcp,0.0.0.0/0,35700:35705,on,0.0.0.0,IPFireSeeder" >> /var/ipfire/xtaccess/config
if ! grep -q "35700:35700" /var/ipfire/xtaccess/config ; then
echo "tcp,0.0.0.0/0,35700:35700,on,0.0.0.0,IPFireSeeder" >> /var/ipfire/xtaccess/config
/usr/local/bin/setxtaccess
fi
;;