move all torrent configuration into config.sh
[cloudstore.git] / torrent / start-seeder.sh
1 #!/bin/sh -xe
2 . ./config.sh
3
4 rtorrent -O directory=$srv/md5 \
5 -O session=$var/session \
6 -O schedule=watch_directory,5,5,load_start=$var/watch/*.torrent \
7 -O schedule=tied_directory,5,5,start_tied= \
8 -O schedule=untied_directory,5,5,close_untied= \
9 -O scgi_local=$var/socket \
10 -O bind=$ip_seed -O port_range=6890-6999 \
11 -O dht=auto -O dht_port=6881 \
12 -O peer_exchange=yes \
13 -O download_rate=15 -O upload_rate=15
14
15 # last line for debug, comment out but leave enty line before this comment!
16