Installing & Creating Sonarr Service in Ubuntu

Installing Sonarr

Add Sonarr’s repository to your software source

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0xA236C58F409091A18ACA53CBEBFF6B99D9B78493
echo "deb http://apt.sonarr.tv/ master main" | sudo tee /etc/apt/sources.list.d/sonarr.list

Install/Update Sonarr

sudo apt update
sudo apt install nzbdrone 

Start Sonarr

mono --debug /opt/NzbDrone/NzbDrone.exe

Test Sonarr in a Browser

http://<IP>:8989

Kill the Sonarr process with Ctrl+C so we can start it automatically on boot using a systemd script

Creating Sonarr Service

Download the file sonarr.txt, rename it to sonarr.service and copy it to /etc/systemd/system/

Be sure to modify the user, group, mono path and install directory if required.

Setup Sonarr to run at start up

sudo systemctl enable sonarr.service

Starting/Stopping Sonarr (and checking status)

sudo systemctl start sonarr.service
sudo systemctl stop sonarr.service
sudo systemctl status sonarr.service

https://github.com/Sonarr/Sonarr/wiki/Installation https://github.com/Sonarr/Sonarr/wiki/Autostart-on-Linux#method-5-systemd