mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-19 23:43:00 +02:00
Add some throttling parameters to ipfireseeder
and add the new final iso torrent to rootfile
This commit is contained in:
@@ -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
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user