Skip to content
This repository has been archived by the owner on Nov 14, 2019. It is now read-only.

πŸš€ A simple bash script to launch rtorrent as a daemon

License

Notifications You must be signed in to change notification settings

crazy-max/rtorrent-launcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

51 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

GitHub release Build Status Code Quality Become a sponsor Donate Paypal

About

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.

Requirements

Installation

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

Configuration

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.

USER

Name of the linux user who starts rtorrent.
Example: USER="rtorrent"

SCREEN_NAME

The screen name, you can put what you want but it must be unique and must contain only alphanumeric character.
Example: SCREEN_NAME="rtorrent"

LOG_DIR

Directory of rtorrent launcher logs.
Example: LOG_DIR="/var/log/rtorrent"

RTORRENT_CONFIG

Path to .rtorrent.rc config file.
Example: RTORRENT_CONFIG="/home/rtorrent/.rtorrent.rc"

Usage

  • 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

How can I help ?

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! πŸ™

License

LGPL. See LICENSE for more details.