From 02619b4a8be7beaea475dd7a404ab6c5d7f56575 Mon Sep 17 00:00:00 2001 From: Francisco Pombal Date: Thu, 30 Apr 2020 17:27:46 +0100 Subject: [PATCH] Destroyed Setting up qBittorrent as a daemon on CentOS 7 (markdown) --- ...-up-qBittorrent-as-a-daemon-on-CentOS-7.md | 42 ------------------- 1 file changed, 42 deletions(-) delete mode 100644 Setting-up-qBittorrent-as-a-daemon-on-CentOS-7.md diff --git a/Setting-up-qBittorrent-as-a-daemon-on-CentOS-7.md b/Setting-up-qBittorrent-as-a-daemon-on-CentOS-7.md deleted file mode 100644 index a62d03a..0000000 --- a/Setting-up-qBittorrent-as-a-daemon-on-CentOS-7.md +++ /dev/null @@ -1,42 +0,0 @@ -# Platform -* CentOS 7_x64 -* systemctl - -# Install -You have two options for installation - -* One, follow this guide [Compiling qbittorrent-nox for CentOS from source](https://github.com/qbittorrent/qBittorrent/wiki/Compiling-qbittorrent-nox-for-CentOS-from-source) -* Two, install from [EPEL](https://fedoraproject.org/wiki/EPEL) - -If you choose to install from EPEL you can simply `sudo yum install qbittorrent-nox.x86_64` - -# Creating a systemctl script -1. Create a script so that we can control qbittorrent with systemctl -`sudo vi /usr/lib/systemd/system/qbittorrent.service` -2. Enter`i`to enter insert mode then paste the code below, change **\** to the user you want to run qbittorrent with. Note that you can't run as user `nobody`. -``` - [Unit] - Description=qbittorrent torrent server - - [Service] - User= - ExecStart=/usr/bin/qbittorrent-nox - Restart=on-abort - - [Install] - WantedBy=multi-user.target -``` -3. Save the script -Enter`:wq` then press enter to save the script -4. reload systemctl, this will make systemd take notice of the new script -`sudo systemctl daemon-reload` -5. Start qbittorrent and accept the user agreement -`sudo qbittorrent-nox`, press `y` then `Enter`. Now close qbittorrent `Ctrl-C` -5. Start the qbittorrent service -`sudo systemctl start qbittorrent` - -# Start at boot -`sudo systemctl enable qbittorrent` - -# Source -https://stackoverflow.com/a/26565328 \ No newline at end of file