-
-
Notifications
You must be signed in to change notification settings - Fork 427
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 without screen. implements issue #36 #111
Conversation
… terminal before initializing ncurses by calling initscr. if no terminal available assume rtorrent is daemon and disable terminal functionality in display::Canvas so program does not crash and i/o can be done with rpc calls.
Works fine! Thank you! |
implements FR #36 |
No more |
Works great! Thank you so much. Instead of a hacked together script to get it running through screen, rtorrent can be controlled with a simple upstart script now! Below is my upstart script in /etc/init/rtorrent, in case it helps anyone. You'll probably want to change the paths and user/group:
|
here is were it seams to fail... of it helps
the file /tmp/rutorrent-stats-".rand() is created with correct values so it has to be the return codes or so... |
@sallyswiss you got any ide? |
does not work if started from python... |
In any case the 'have term' needs to be a variable that can be set (see src/command_*.cc) and default to true. |
What is the status of this? |
Status is that the patch defaults to daemon while that should be the non-default option set by a properly named system.daemon.enable variable (or something). For someone who wants this merged, fork the branch, merge the latest develop, then add the (very easy to add) variable and checks to have the proper behavior. Make a new pull request, attribute the original developers above, and make something I want to merge. |
+1 |
Allow rtorrent to run as a daemon, slightly modified version of #111
this checks if running in a terminal before initializing ncurses with initscr and then does not initialize if not a terminal. this means rtorrent can run as a daemon but will still function normally under normal conditions.