test login return from create_user
[cloudstore.git] / torrent / start-seeder.sh
index 3bdf6bb..f1bdb62 100755 (executable)
@@ -1,12 +1,24 @@
 #!/bin/sh -xe
 
-rtorrent -O directory=./send/ \
--O schedule=watch_directory,5,5,load_start=./send/watch/*.torrent \
+cd /rsync1/s1/torrent
+
+eval export `grep s1 /var/lib/extrausers/group | cut -d: -f4`
+
+test -d session || mkdir session
+
+test -S socket && rm -vf socket # fix rtorrent startup problem
+
+rtorrent -O directory=download/ \
+-O session=session \
+-O schedule=watch_directory,5,5,load_start=seed/*.torrent \
 -O schedule=tied_directory,5,5,start_tied= \
 -O schedule=untied_directory,5,5,close_untied= \
--O scgi_local=/tmp/rtorrent.socket \
--O download_rate=15 \
--O upload_rate=15 \
--O bind=10.60.0.240 \
+-O scgi_local=socket \
+-O bind=$seed_ip -O port_range=$seed_port_range \
+-O dht=auto -O dht_port=$seed_dht_port \
 -O peer_exchange=yes \
+-O download_rate=$seed_download -O upload_rate=$seed_upload \
+-O system.method.set_key=event.download.finished,notify_me,execute=/srv/cloudstore/torrent/rtorrent-finish-download.sh,$d.get_name= \
+
+# last line for debug, comment out but leave enty line before this comment!