It is currently Fri May 24, 2013 5:09 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: [RESOLVED] Transmission downloads from scratch after outage
PostPosted: Tue Jan 10, 2012 3:12 pm 
Super Tonidoid
Super Tonidoid
Joined: Sat Nov 07, 2009 2:02 pm
Posts: 47

I have noticed that if Tonido restarts after power outage, and Transmission was running, then after reboot, Transmission tends to download files from the very begining. Then I am having to manually run "verify" on each active torrent. Once Verify is complete, torrents are downloaded from where it actually ended.

So I made a shell script that would force verify on all active torrents on plug bootup. So I added the script to rc*.d

But still it seems like verify is not happening.

Could someone tell me where I could find the Transmission log (as it might help me understand why verify is not happening at boot)? Or am I in the correct path adding to statup?


Last edited by mathewparet on Thu Jan 12, 2012 1:12 am, edited 1 time in total.

Offline
 Profile  
 Post subject: Re: Transmission downloads from scratch after power outage
PostPosted: Thu Jan 12, 2012 1:05 am 
Tonido MVP
Tonido MVP
Joined: Fri Oct 21, 2011 8:20 pm
Posts: 295

Try asking your question here: https://forum.transmissionbt.com/


Offline
 Profile  
 Post subject: Re: Transmission downloads from scratch after power outage
PostPosted: Thu Jan 12, 2012 1:11 am 
Super Tonidoid
Super Tonidoid
Joined: Sat Nov 07, 2009 2:02 pm
Posts: 47

Solved. Now its working. I tried to add a KSH script to startup. Later I read somewhere that rc supports on .SH files. Once I ported the code, it now works fine.


Offline
 Profile  
 Post subject: Re: [RESOLVED] Transmission downloads from scratch after out
PostPosted: Thu Jan 12, 2012 1:16 am 
Super Tonidoid
Super Tonidoid
Joined: Sat Nov 07, 2009 2:02 pm
Posts: 47

Just in case anyone else had the same issue, the code below might help.

Code:
root@gPlug:~# cd /etc/init.d/
root@gPlug:/etc/init.d# nano verify_torrents.sh


Put the following in the SH file:

Code:
#!/bin/sh

# REQUIRE: transmission-daemon

# just to be sure
sleep 5

TR_USER=<username>
TR_PASS=<password>

# force all torrents to be verified
for TORRENT in `transmission-remote -n ${TR_USER}:${TR_PASS} -l | sed '1d;$d' | tr " " "*"`; do
        TORRENT_ID=`echo $TORRENT | tr "*" " " | cut -c1-4`
        transmission-remote -n ${TR_USER}:${TR_PASS} -t $TORRENT_ID -v
done


Now add it to startup:

Code:
update-rc.d verify_torrents.sh defaults


Offline
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours [ DST ]


 Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: