You are not logged in.

#1 2011-05-10 09:38:47

caxap
Member
Registered: 2011-03-05
Posts: 17

rtorrent safe shutdown

I use rtorrent and noticed some time ago that with running rtorrent after reboot system always checks disks and finds orphaned inodes.

So, the question is how to stop rtorrent properly to prevent disk checks?

Offline

#2 2011-05-10 19:40:40

sudokill
Member
Registered: 2011-04-27
Posts: 54

Re: rtorrent safe shutdown

In my rtorrent.rc I have check hash on, not sure if that applies apparently it solves some disk problems. I've never had that issue using rtorrent- here's what my config looks like:

min_peers = 1
max_peers = 80
max_uploads = 2
upload_rate = 8
directory = /home/chris/Downloads
session = /home/chris/.session
schedule = watch_directory,5,5,load_start=/home/chris/Downloads/*.torrent
schedule = untied_directory,5,5,stop_untied=
port_range = 55555-55555
port_random = no
check_hash = yes
use_udp_trackers = yes
encryption = require,require_RC4
dht = auto
peer_exchange = yes

Offline

#3 2011-05-10 19:57:43

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: rtorrent safe shutdown

You have to quit rtorrent with Ctrl+q. Doing that you see, that it doesn't stop immediately. If you shut it down the hard way by killing the terminal it runs in, it doesn't exactly know what data has been received and what hasn't. That's why it has to hash all running torrents. As far as I know every torrent client has to be quit the soft way, I remember transmission to pop up a little window telling something like "synching with the server"

Offline

#4 2011-05-11 07:13:30

caxap
Member
Registered: 2011-03-05
Posts: 17

Re: rtorrent safe shutdown

ok, thanx! will check it

Offline

#5 2011-05-12 18:49:38

pyroscope
Member
Registered: 2011-03-11
Posts: 33
Website

Re: rtorrent safe shutdown

BTW, SIGINT is the same as ^q, and if you wait that the pid disappears for 10-20 secs (with sleeps inbetween), you can write a proper shutdown script easily.

Offline

#6 2011-05-14 09:10:49

caxap
Member
Registered: 2011-03-05
Posts: 17

Re: rtorrent safe shutdown

come on! everybody knows that. but who wants to wait 10-20 sec while a pc's getting shutdown )

Offline

#7 2011-05-14 13:49:51

pyroscope
Member
Registered: 2011-03-11
Posts: 33
Website

Re: rtorrent safe shutdown

The trick is to check /proc for the process, i.e. only wait as long as it takes — but of course you already know that. Either you want a proper torrent shutdown, or you don't. How long it takes then depends solely on the amount of items you have loaded.

Offline

Board footer

Powered by FluxBB