Today rtorrent does not have a built-in daemon but it's in development π·
That's why i have created this simple bash script to launch π rtorrent as a daemon π
Tested on Debian and Ubuntu.
Perform the following commands to download and install the script :
$ cd /etc/init.d/
$ wget https://raw.github.com/crazy-max/rtorrent-launcher/master/rtorrent-launcher.conf -O /etc/rtorrent-launcher.conf --no-check-certificate
$ wget https://raw.github.com/crazy-max/rtorrent-launcher/master/rtorrent-launcher.sh -O rtorrent --no-check-certificate
$ chmod +x rtorrent
$ update-rc.d -f rtorrent remove
$ update-rc.d rtorrent defaults
$ update-rc.d rtorrent enable
Before running the script, you must change some vars in the config file /etc/rtorrent-launcher.conf
.
If you change the location of the config file, do not forget to change the path in the script file for the CONFIG_FILE
var.
Name of the linux user who starts rtorrent.
Example: USER="rtorrent"
The screen name, you can put what you want but it must be unique and must contain only alphanumeric character.
Example: SCREEN_NAME="rtorrent"
Directory of rtorrent launcher logs.
Example: LOG_DIR="/var/log/rtorrent"
Path to .rtorrent.rc
config file.
Example: RTORRENT_CONFIG="/home/rtorrent/.rtorrent.rc"
- start - Start rtorrent in a screen.
- stop - Stop rtorrent and close the screen loaded.
- status - display the status of rtorrent.
- restart - restart rtorrent.
- info - display several infos about rtorrent.
Example : /etc/init.d/rtorrent start
All kinds of contributions are welcome π! The most basic way to show your support is to star π the project, or to raise issues π¬ You can also support this project by becoming a sponsor on GitHub π or by making a Paypal donation to ensure this journey continues indefinitely! π
Thanks again for your support, it is much appreciated! π
LGPL. See LICENSE
for more details.