Skip to content
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

provide a headless rtorrentd #36

Closed
infinity0 opened this issue Mar 3, 2012 · 16 comments
Closed

provide a headless rtorrentd #36

infinity0 opened this issue Mar 3, 2012 · 16 comments

Comments

@infinity0
Copy link

Would it be possible to provide a daemon version of rtorrent that doesn't have a UI and just sits there waiting for XML RPC requests? At the moment, I need to mess around with screen - if i just do rtorrent & disown, XML RPCs hang for some reason.

It doesn't even need to background itself, since start-stop-daemon can handle this pretty easily. (Actually, if you did make it background itself by using fork(), you would also need to create a pidfile somewhere so start-stop-daemon can get at the new pid).

It would be really useful for scripting things with torrents. transmission-daemon is the only other client that comes close in this regard, but their RPC client doesn't output machine-parseable data, and for some reason it's not connecting properly for my setup (but rtorrent does). Also they don't support the http_cacert options which is pretty important for what I want to do (encrypted backup over bittorrent).

@rakshasa
Copy link
Owner

rakshasa commented Mar 3, 2012

It is one of those things I've wanted to do for a long time, but never got around to.

However with the improved logging facilities, etc, I might consider doing it... Well, at some point in time at least.

@riotopsys
Copy link

consider using rtorrent with screen you can get rtorrent to act as if it were a daemon.

@infinity0
Copy link
Author

that is what I'm doing currently, but this is not a clean solution. to shutdown rtorrent cleanly you need to send it a INT signal, but there is no way to get start-stop-daemon (the standard daemon manager on debian-based systems) to make screen send signals to the underlying child process.

@lvella
Copy link

lvella commented Apr 13, 2012

Up to this! Lately I've been using Transmission, but it is not the same thing...

@gclawes
Copy link

gclawes commented May 14, 2012

I know in gentoo there is an init-script provided that works well under gentoo's OpenRC init framework. Don't know how generally applicable/portable the same concepts would be

@sallyswiss
Copy link

I modified rtorrent so that if it does not run in a terminal ncurses is not initialized and rtorrent does not crash. this means it can run headless. this should solve the problem described. see my fork of rtorrent. I sent a pull request yesterday for another issue but do not see how to send another one for this.

@sallyswiss
Copy link

found the problem. I needed to send pull request from different branch. new pull request for this issue sent.

@awh-tokyo
Copy link

Is there any reason this pull request was never accepted? What I'm doing now (with screen) just seems clunky.

@rolfyone
Copy link

I'm pretty keen on this enhancement also... I might fork and import it myself...

@munnerz
Copy link

munnerz commented Aug 12, 2017

Looks like a PR has been merged for this, just awaiting it landing in a release: #446

@rraallvv
Copy link

rraallvv commented Nov 4, 2018

Is headless mode supported in 0.9.6 ?

@chros73
Copy link
Contributor

chros73 commented Nov 5, 2018

No, only in 0.9.7.

@rraallvv
Copy link

rraallvv commented Nov 5, 2018

@chros73 Thanks. Nevertheless, I was able to use screen with 0.9.6 for a "sort of" headless mode.

@chros73
Copy link
Contributor

chros73 commented Nov 5, 2018

Yes, or tmux. That's how the majority of people use rtorrent.

@rraallvv
Copy link

rraallvv commented Nov 5, 2018

@chros73 Awesome! I'll check out tmux too then. Thanks.

@phxn
Copy link

phxn commented Nov 5, 2018

tmux gets my vote too, it’s extremely useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests