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

Documentation on systemd service #1254

Open
papoteur-mga opened this issue Dec 2, 2023 · 2 comments
Open

Documentation on systemd service #1254

papoteur-mga opened this issue Dec 2, 2023 · 2 comments

Comments

@papoteur-mga
Copy link

This part of documentation is not clear :https://github.com/rakshasa/rtorrent/wiki/Common-Tasks-in-rTorrent#ubuntu-1604-with-systemd
It suggests 2 ways to start rtorrent as a service, one using tmux, another using socat, but:

  • after starting with tmux, there is no indication on how to access to the processus already started.
  • there is no indication that socat has to be installed before the second option
  • this one fails to start socat[2028332.281473144643616] E symlink("/dev/pts/1", "/run/rtorrent/tty"): No such file or directory
@kannibalox
Copy link
Contributor

kannibalox commented Dec 2, 2023

* after starting with tmux, there is no indication on how to access to the processus already started.

tmux a -t rtorrent There are lots of good resources for using both screen and tmux out there, e.g. https://tmuxcheatsheet.com/

* this one fails to start `socat[2028332.281473144643616] E symlink("/dev/pts/1", "/run/rtorrent/tty"): No such file or directory`

My guess would be that /run/rtorrent needs to be created first, but haven't tested it.

The wiki is publicly editable, I've added the thing you've mentioned, but feel free to update it yourself if you find anything else missing.

You may also want to consider using daemon mode (system.daemon.set = true in the rtorrent.rc) if you don't want the hassle of dealing with screen or tmux, at the expense of only being able to operate it via the XMLRPC API.

@papoteur-mga
Copy link
Author

tmux a -t rtorrent There are lots of good resources for using both screen and tmux out there, e.g. https://tmuxcheatsheet.com/

Thanks. I edited your edit because it wasn't visible.

My guess would be that /run/rtorrent needs to be created first, but haven't tested it.

Not sure. /run is a in memory tree, thus any addition won't survive to a reboot. It should be a mechanism to create it, not by the user.

The wiki is publicly editable, I've added the thing you've mentioned, but feel free to update it yourself if you find anything else missing.

Done, a little space

You may also want to consider using daemon mode (system.daemon.set = true in the rtorrent.rc) if you don't want the hassle of dealing with screen or tmux, at the expense of only being able to operate it via the XMLRPC API.

I have considered it, but for now i'm stopped because this section is still void https://github.com/rakshasa/rtorrent/wiki/Daemon_Mode

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

2 participants