Results 1 to 1 of 1
Hi there,
I have put an init script together to start and stop rtorrent. I am having to use screen as a daemon as rtorrent is an "interactive" client but ...
- 01-24-2009 #1Just Joined!
- Join Date
- May 2006
- Posts
- 13
starting rtorrent with an init.d script using screen
Hi there,
I have put an init script together to start and stop rtorrent. I am having to use screen as a daemon as rtorrent is an "interactive" client but I cannot get is to work properly any help would be appreciated.
So I run this:
screen -dmUS screensession /usr/bin/rtorrent pete
from the command line and it works fine. screen -ls and I have a screen session and if I ps -ef i can see both screen and rtorrent are running.
but when is put that into my init script as:
daemon screen -dmUS screensession /usr/bin/rtorrent pete
the script starts up ok and if I ps -ef I can see screen and rtorrent running but if I do a "screen -ls" or "screen -r screensession" nothing. Comes back say no sessions are active.
Not sure whats happening here. Any Suggestion or an alternate way to run rtorrent (in the background) would be great.
Thanks,
Pete.


