LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-08-2008, 07:15 PM   #1
musther
Member
 
Registered: Sep 2007
Posts: 36

Rep: Reputation: 15
rtorrent - removing finished torrents.


I have rtorrent running on an old P166 laptop, controlled via SSH in a screen session.

Using rtorrent.rc I have it configured to:

Code:
# Watch a directory for new torrents, and stop those that have been
# deleted.
schedule = watch_directory,5,5,load_start=/home/musther/Downloads/rtorrent/torrents/*.torrent
schedule = untied_directory,5,5,stop_untied=
and

Code:
# Stop torrents when reaching upload ratio in percent,
# when also reaching total upload in bytes, or when
# reaching final upload ratio in percent.
# example: stop at ratio 2.0 with at least 200 MB uploaded, or else ratio 20.0
schedule = ratio,60,60,"stop_on_ratio=200,200M,2000"
and

Code:
# When the torrent finishes, download is moved.
on_finished = move_complete,"execute=mv,-u,$d.get_base_path=,/media/dump/completed/ ;d.set_directory=/media/dump/completed/"
and finally

Code:
#When the torrent finishes, the .torrent file is removed.
on_finished = rm_torrent,"execute=rm,$d.get_tied_to_file="
The problem is, when they've finished, although the download is moved, and the .torrent deleted, rtorrent keeps them loaded (they simply say that they're done and closed). What's responsible seems to be the HASH.torrent files that are generated and stored in the session directory:

Code:
musther@magog:~/rtorrent$ ls
23910FF518CFA4E491840F5A01D0107C2489B584.torrent  860DF0230EAA7F2F59E5E5E65843054552AE7CEF.torrent
5D45CC12F1DB0F7C9D6095630ABDFFC76C97181B.torrent  91B98864CA760248AF794F2AE952CAC9C26B2600.torrent
65A21575A05D36D4EF98CA04BF63554CAFC70A5C.torrent  9E23CD62E27DA87143B0E9BD5DAA215633D72797.torrent
706F80F99EDBDF96730765598C9B7574C2B18BA8.torrent  C510219970249D897E3266E3ED7E7596CAB58F2C.torrent
etc...

These files never seem to be removed, even if rtorrent is restarted.

Am I missing something? I don't really want rtorrent cluttered up with old, inactive torrents.
 
Old 06-10-2008, 03:47 AM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
When a torrent is 'done' I usually press ctrl+d and it removes all the .torrent files
I don't know how to automate it, though.

Last edited by sycamorex; 06-10-2008 at 03:49 AM.
 
Old 06-10-2008, 04:57 AM   #3
musther
Member
 
Registered: Sep 2007
Posts: 36

Original Poster
Rep: Reputation: 15
Yeah, I was hoping for an automated method, but thanks anyway.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rtorrent on Gentoo properganda Linux - Newbie 2 02-24-2008 08:41 AM
About rtorrent satimis Linux - Software 8 02-19-2008 08:36 AM
rTorrent issues imagineaxion Linux - Software 3 02-16-2008 01:41 PM
About rtorrent satimis Linux - Software 0 05-10-2007 10:34 AM
What do you do after all is finished mdkusr General 12 01-29-2006 11:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration