-
-
Notifications
You must be signed in to change notification settings - Fork 426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow rtorrent to run as a daemon, slightly modified version of #111 #446
Conversation
…R provided by sallyswiss
Built latest master with this PR, works as intended.
Change username and paths accordingly. |
This great feature has now more than 1 year old. When would you push a new stable version or rtorrent? :-) Thanks. |
When feature-bind is ready. |
For anyone trying to run the development build, the setting is |
rtorrent: Failed to parse command line option: Error in option file: /root/.rtorrent.rc:4: Command "system.use_daemon.set" does not exist. Daemon not yet available? |
Read the comment above yours @cantalupo555 |
Hopefully this is helpful; |
@asavah
So, you'll be able to start rtorrent as usual without changing system.daemon.set option in file. |
@Perlovka it's better to not start it at all, since it looks like rtorrent is mostly abandoned, and bugs are not getting fixed. eg #443 and the whole lot in the tracker. |
that might have been a good argument before the more recent release
glad to hear it, you won't see me promoting rtorrent on libtorrent_rasterbar's issue tracker though |
@asavah so why this better and cleaner implementation have more than 200 open bugs? I'm using rtorrent for more than 7 years (at least). And the only time it needed my attention were changes for 0.9.7 release. I'm very happy with this result. |
@Perlovka care to name a software project without bugs? I have an extensive torrent collection which I'm seeding on a gigabit link, |
I'm seeding 20k+ torrents on a gigabit line, and I don't denigrate people based on sheer assumptions. I'm certainly not saying rtorrent is the best client for everyone in all circumstance, or that aren't some rough bugs out there. If Deluge works better for your case, more power to you. I just wanted to make sure there was a nod to @rakshasa's recent efforts in getting the 0.9.7 release out there, which contains a bunch of bug fixes, meaning that rtorrent isn't abandonware or anything. There's also projects like rtorrent-ps and rtorrent-ps-ch that are actively updated as well. |
Anyone know the right way to use the daemon mode? I have tried systemd unit as @asavah wrote at the top, but rtorrent will ignore all recent torrents added after a process restart. I even tried using Edit: files |
That is the beauty of this daemon mode, you struck yourself blind and are unable to diagnose anything. 👍 |
That's why I run everything in foreground within tmux... |
@pyroscope Perhaps a PR is in order then to integrate rtorrent with syslogd (or journald if running in an OS with systemd) |
Hello, Thanks for rtorrent. How can I open rtorrent with screen when its running in daemon mode? |
You can't, there's not ncurses ui when it is in daemon mode. |
Thanks for reply @rakshasa, Would be nice to add a daemon mode that is possible to open ncurses ui. Maybe open a new feature request issue to be possible for others to give their opinion in the discussion would be the best choice. |
I already have a design for that, using protobuf protocol to connect an ncurses ui to rtorrent. |
Hmm, interesting. Although personally I don't really see the point, if someone needs to access to the GUI then why doesn't just start it in tmux then? |
The point of protobuf is to use it to separate out xmlrpc, and a future implementation of websocket support, from the rtorrent process. This would allow you to write custom tools to interact with rtorrent that is not restricted by xmlrpc and doesn't require you to touch the complexity of the core client. |
Hi, @rakshasa. While the protobuf approach is not yet implemented, what issues and implications may occur when running multiple instances of rtorrent using the same I'm thinking of using a systemd service to run an instance of rtorrent, which will explicitly run in daemon mode. and using the setting Is there a problem using rtorrent this way? |
The torrent sessions still get saved to that directory so they'll cause conflict, better to have separate session directories and seed the torrents from the same data files. |
Implements a
system.use_daemon
variable that allows users to enable daemon mode viasystem.use_daemon.set = true
in.rtorrent.rc
Credits to @sallyswiss for basically all of the code in #111.