crazy-max / docker-rtorrent-rutorrent

rTorrent and ruTorrent Docker image
MIT License
498 stars 110 forks source link

Changes to the rtlocalrc file #95

Closed caioortiz closed 3 years ago

caioortiz commented 3 years ago

Behaviour

Steps to reproduce this issue

Hi,

I made changes to the .rtlocal.rc file, but they are not saved. (https://github.com/crazy-max/docker-rtorrent-rutorrent#boostrap-config-rtlocalrc)

Steps: git clone https://github.com/crazy-max/docker-rtorrent-rutorrent.git cd docker-rtorrent-rutorrent I edit the file in docker-rtorrent-rutorrent/rootfs/tpls/etc/rtorrent/.rtlocal.rc Make the docker buildx bake image Then do the docker tag and docker push I run the docker run with the modified docker image

Access ruTorrent, but changes don't happen For example, I add limit on the download / upload: _Global upload and download rate in KiB, '0' for unlimited ('download_rate', 'upload_rate') throttle.global_up.max_rate.set_kb = 1536 throttle.global_down.max_rate.setkb = 2560 Accessing with the docker exec, the .rtlocal.rc file has the modification, however opening it in ruTorrent, it did not apply, there is no limit.

Could you help me what am I doing wrong?

Thank you very much for providing this docker image and sorry for the English.

Configuration

imjuzcy commented 3 years ago

What changes did you make? Some configs are overwritten at container start up by rootfs/etc/cont-init.d/03-config.sh, so you might get better results from just letting .rtlocal.rc be and adding lines to .rtorrent.rc to override the config.

caioortiz commented 3 years ago

Hi,

I need to add global upload and download.

# Global upload and download rate in KiB. "0" for unlimited
throttle.global_down.max_rate.set_kb = 1024
throttle.global_up.max_rate.set_kb = 1024

I didn't find elements for global upload and download rate in .rtorrent.rc, so I would have to rebuild the image, right? https://github.com/crazy-max/docker-rtorrent-rutorrent#boostrap-config-rtlocalrc

How do I rebuild the image with this change?

imjuzcy commented 3 years ago

These options are in the default .rtorrent.rc line 13 and 14. That's why it's not applied even when you add them in .rtlocal.rc. Values in .rtorrent.rc overrides values in .rtlocal.rc.

All you need to do is just edit the values in /data/rtorrent/.rtorrent.rc. The files should be editable from the host after first run if you have mounted /data. You shouldn't have to edit the source and rebuild for this.

caioortiz commented 3 years ago

Perfect, I changed to /data/rtorrent/.rtorrent.rc and restarted the container.

Working now! Thanks a lot for the help.