项目作者: crazy-max

项目描述 :
🚀 A simple bash script to launch rtorrent as a daemon
高级语言: Shell
项目地址: git://github.com/crazy-max/rtorrent-launcher.git
创建时间: 2012-11-17T21:47:47Z
项目社区:https://github.com/crazy-max/rtorrent-launcher

开源协议:GNU Lesser General Public License v3.0

下载


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 :

  1. $ cd /etc/init.d/
  2. $ wget https://raw.github.com/crazy-max/rtorrent-launcher/master/rtorrent-launcher.conf -O /etc/rtorrent-launcher.conf --no-check-certificate
  3. $ wget https://raw.github.com/crazy-max/rtorrent-launcher/master/rtorrent-launcher.sh -O rtorrent --no-check-certificate
  4. $ chmod +x rtorrent
  5. $ update-rc.d -f rtorrent remove
  6. $ update-rc.d rtorrent defaults
  7. $ 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 :raised_hands:! The most basic way to show your support is to star :star2: the project, or to raise issues :speech_balloon: You can also support this project by becoming a sponsor on GitHub :clap: or by making a Paypal donation to ensure this journey continues indefinitely! :rocket:

Thanks again for your support, it is much appreciated! :pray:

License

LGPL. See LICENSE for more details.