New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
I don't think you need that restartd stuff...
My rtorrent never has crashed.
Edit. Otherwhise... if you are paranoic, you can do an script in the way..
while true
rtorrent
done
And launch it from screen.
nice one @yomero
i would rather use nohup, more flexible than screen.
Thank you all for you answers.
i finally made it for @robocot, here's how i did:
/etc/restartd.conf
/path/to/rtorrentstart.sh (usually something like /home/username/rtorrentstart.sh)
restard matches the string you set against process names
rtorrent is listed just as "rtorrent", if you have more rtorrent's instance (one by user, ie), you need different processname to match the right one, so the need for the shell script wrapper
just one bug: with screen -d -m (start detached session), i found "C-a", screen's default command character, intercepts any ^char command you send to rtorrent (it doesn't happen with standard screen session)
I've tried to map command character in screen to something else, with -e options, with no luck at the moment
using an ui front-end for rtorrent "solves" the issue