Starting plugins with rtorrent

Suggestions for features and software you would like to see in DietPi, goes here.
Post Reply
KamikazeePL
Posts: 22
Joined: Sat Nov 21, 2020 5:57 pm

Starting plugins with rtorrent

Post by KamikazeePL »

Modify .rtorrent.rc to initate plugins when rtorrent starts.
https://github.com/Novik/ruTorrent/wiki ... h-rtorrent
Plugins will load when the webui is opened. If you have plugins which need to poll for data (like rss or scheduler) you may wish to have them start when rtorrent starts, regardless of whether or not the webui has been loaded. All plugins can be brought up with a single .rtorrent.rc command. Be sure to edit this command for:

php path Your path may be different
ruTorrent location ruTorrent may be installed in a different location on your system
webusername you may or may not be using web authentication, if you aren't, remove the username entirely, if you are, edit it accordingly

(the following is for user tom with ruTorrent installed at /var/www/ruTorrent)

rtorrent version 0.9+:

execute2 = {sh,-c,/usr/bin/php /var/www/ruTorrent/php/initplugins.php tom &}

or for older rtorrent version:

execute = {sh,-c,/usr/bin/php /var/www/ruTorrent/php/initplugins.php tom &}
User avatar
Joulinar
Posts: 5617
Joined: Sat Nov 16, 2019 12:49 am

Re: Starting plugins with rtorrent

Post by Joulinar »

is that a question? Or an information? Or what do you like to emphasis?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
KamikazeePL
Posts: 22
Joined: Sat Nov 21, 2020 5:57 pm

Re: Starting plugins with rtorrent

Post by KamikazeePL »

Information to change rtorrent.rc file.
User avatar
MichaIng
Site Admin
Posts: 3214
Joined: Sat Nov 18, 2017 6:21 pm

Re: Starting plugins with rtorrent

Post by MichaIng »

So it's a change/feature request. Interesting indeed. Is there a specific plugin you require this for?

I move this thread to requests.
User avatar
Joulinar
Posts: 5617
Joined: Sat Nov 16, 2019 12:49 am

Re: Starting plugins with rtorrent

Post by Joulinar »

If I understand correctly, plugins are loaded while opening the web UI. loading plugins earlier might be relevant for some specific ones https://github.com/Novik/ruTorrent/wiki ... h-rtorrent
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply