test send_file with spaces in both arguments
[cloudstore.git] / torrent / start-seeder.sh
1 #!/bin/sh -xe
2
3 cd /rsync1/s1/torrent
4
5 eval export `grep s1 /var/lib/extrausers/group | cut -d: -f4`
6
7 test -d session || mkdir session
8
9 test -S socket && rm -vf socket # fix rtorrent startup problem
10
11 rtorrent -O directory=download/ \
12 -O session=session \
13 -O schedule=watch_directory,5,5,load_start=seed/*.torrent \
14 -O schedule=tied_directory,5,5,start_tied= \
15 -O schedule=untied_directory,5,5,close_untied= \
16 -O scgi_local=socket \
17 -O bind=$seed_ip -O port_range=$seed_port_range \
18 -O dht=auto -O dht_port=$seed_dht_port \
19 -O peer_exchange=yes \
20 -O download_rate=$seed_download -O upload_rate=$seed_upload \
21 -O system.method.set_key=event.download.finished,notify_me,execute=/srv/cloudstore/torrent/rtorrent-finish-download.sh,$d.get_name= \
22
23 # last line for debug, comment out but leave enty line before this comment!
24