Merge branch 'master' of git.rot13.org:/git/cloudstore
[cloudstore.git] / torrent / start-seeder.sh
1 #!/bin/sh -xe
2
3 ip=$1
4 test -z "$ip" && ip=10.60.0.240
5
6 rtorrent -O directory=./send/ \
7 -O schedule=watch_directory,5,5,load_start=./send/watch/*.torrent \
8 -O schedule=tied_directory,5,5,start_tied= \
9 -O schedule=untied_directory,5,5,close_untied= \
10 -O scgi_local=/tmp/rtorrent.socket \
11 -O download_rate=15 \
12 -O upload_rate=15 \
13 -O bind=$ip \
14 -O peer_exchange=yes \
15