Page 1 of 1

Starting plugins with rtorrent

Posted: Sat May 08, 2021 6:04 pm
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 &}

Re: Starting plugins with rtorrent

Posted: Sun May 09, 2021 10:48 am
by Joulinar
is that a question? Or an information? Or what do you like to emphasis?

Re: Starting plugins with rtorrent

Posted: Sun May 09, 2021 7:06 pm
by KamikazeePL
Information to change rtorrent.rc file.

Re: Starting plugins with rtorrent

Posted: Sun May 09, 2021 7:38 pm
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.

Re: Starting plugins with rtorrent

Posted: Sun May 09, 2021 7:44 pm
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