Tips for building an rtorrent environment on OpenWRT / LEDE. When downloading image files such as Raspberry Pi and Orange Pi, etc. It may take several hours depending on the server, so It is very convenient if torrent works on a NAS that is always running.
There are still various issues, but Since it can be operated as it is Leave a footprint.
The description is based on the following environment. Use Chinese fanless NAS with OpenWRT (LEDE)
reference:
Refer to README.md on the luci-app-rtorrent github page in Reference 1. Install. Only the contents of /root/.rtorrent.rc referred to the information on the page of Reference 2.
With the above environment construction, it started to work implicitly, Because the permission of the downloaded file becomes root The usability is subtle, so I'll fix it.
~/.rtorrent.rc
system.umask.set = 0000
Is it some sort of boot order dependency issue? Immediately after reboot, the torrent list (cgi-bin / luci / admin / rtorrent / main) of luci-app does not work.
Right now, the problem can be solved by restarting rtorrent after rebooting, but I would like to solve it fundamentally.
/etc/init.d/rtorrent stop
/etc/init.d/rtorrent start
By the way, I tried to put the above command in /etc/rc.local, but it still didn't work. Is there something that starts slowly ...
For some reason, sometimes the luci-app's Torrent List becomes unresponsive. When I reattach it from the screen, it works as an rtorrent, so It looks like something is wrong with the call from luci-app.
As a workaround for the time being I prepared the following script and executed it.
#!/bin/bash -x
/etc/init.d/rtorrent stop
rm -rf /root/.rtorrent.session/*
/etc/init.d/rtorrent start
Because I have encountered a similar phenomenon that seems to be a hint I would appreciate it if you could comment.