From 3bf3378724ea163641381bfe53ad7e70bf9f3e71 Mon Sep 17 00:00:00 2001 From: Amritanshu Agrawal Date: Thu, 16 Mar 2017 05:19:37 +0000 Subject: [PATCH] Update 'pages/05.sonarr/docs.md' Properly formateed the Sonarr docs --- pages/05.sonarr/docs.md | 57 +++++++++++++++++++++++++++++------------ 1 file changed, 41 insertions(+), 16 deletions(-) diff --git a/pages/05.sonarr/docs.md b/pages/05.sonarr/docs.md index 1317aa6..7a52599 100644 --- a/pages/05.sonarr/docs.md +++ b/pages/05.sonarr/docs.md @@ -7,27 +7,52 @@ order_manual: '' # Sonarr ### Add Sonarr's repository to your software source -``` sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys -FDA5DFFC echo "deb http://apt.sonarr.tv/ master main" | sudo tee -/etc/apt/sources.list.d/sonarr.list ``` +```sh +sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FDA5DFFC +echo "deb http://apt.sonarr.tv/ master main" | sudo tee /etc/apt/sources.list.d/sonarr.list +``` ### Install/Update Sonarr -```sh sudo apt update sudo apt install nzbdrone ``` +```sh +sudo apt update +sudo apt install nzbdrone +``` ### User Management For security it is best to run a service with a specific user and group. -You can create one using the following command: Add to the ```sonarr``` +You can create one using the following command: Add to the `sonarr` group any users you wish to be able to easily manage or access files -downloaded through Deluge, for example: ```sh sudo adduser --system ---gecos "Sonarr Service" --disabled-password --group --home -/var/lib/sonarr sonarr sudo adduser tanshu sonarr ``` +downloaded through Deluge, for example: +```sh +sudo adduser --system --gecos "Sonarr Service" --disabled-password --group --home /var/lib/sonarr sonarr +sudo adduser tanshu sonarr +``` ### Autostart with systemd Create the file `/etc/systemd/system/sonarr.service` containing the -following: ```sh sudo nano /etc/systemd/system/sonarr.service ``` ``` -[Unit] Description=Sonarr Daemon After=syslog.target network.target -[Service] User=sonarr Group=sonarr Type=simple ExecStart=/usr/bin/mono ---debug /opt/NzbDrone/NzbDrone.exe -nobrowser TimeoutStopSec=20 -KillMode=process Restart=on-failure [Install] WantedBy=multi-user.target -``` Enable the service with: ``` systemctl enable -/etc/systemd/system/sonarr.service systemctl start sonarr systemctl -status sonarr ``` +following: +```sh +sudo nano /etc/systemd/system/sonarr.service +``` +``` +[Unit] +Description=Sonarr Daemon +After=syslog.target network.target + +[Service] +User=sonarr +Group=sonarr +Type=simple + +ExecStart=/usr/bin/mono --debug /opt/NzbDrone/NzbDrone.exe -nobrowser TimeoutStopSec=20 +KillMode=process +Restart=on-failure + +[Install] +WantedBy=multi-user.target +``` +Enable the service with: +```sh +sudo systemctl enable /etc/systemd/system/sonarr.service +sudo systemctl start sonarr +systemctl status sonarr +``` ### Open Browser `http://localhost:8989`