Sonarr v3 as a package has been a hotly requested feature for inclusion with swizzin. However, until Sonarr v3 reaches stable, it will not be an officially supported package. However, you're still able to run Sonarr v3 (without support). The following commands should help you get Sonarr v3 up and running.
To prepare your environment for use with V3, make sure the Sonarr (v2) package is already installed. If it is already installed, you may skip this stetp
box install sonarr
Stop and Disable Sonarr
You must stop Sonarr v2 to release the port to bind Sonarr v3 to. We need to disable Sonarr v2 from automatically starting in case of reboot, otherwise there will likely be a port conflict which will cause your new service to fail.
box stop sonarr box disable sonarr
Install Sonarr V3 and copy the configuration
First we need to grab the latest portable tarball of Sonarr v3 from the phantom-develop repository.
Go to the latest version and find the link with
.linux.tar.gz in the filename. Likely the top file. Right-click on the link and click "Copy Link Location"
Back on the server, use wget to download the file. I.e. (at the time of writing):
Untar the directory:
tar xvf Sonarr.*.tar.gz
Copy your data from
cp -a ~/.config/NzbDrone ~/.config/Sonarr
Now, Sonarr v3 is ready to be used.
Install a systemd --user service to manage the service
In order to allow easy execution of the software and to let it bring up the application automatically if the server ever reboots, a systemd user service will make your life a bit easier.
First, make sure the systemd user directory exists:
mkdir -p ~/.config/systemd/user
Now make the service and paste in the details.
Paste the following into this file:
[Unit] Description=Sonarr v3 After=syslog.target network.target [Service] Type=simple Environment="TMPDIR=%h/.tmp" Environment="MONO_GC_PARAMS=max-heap-size=1500M" ExecStart=/usr/bin/mono %h/Sonarr/Sonarr.exe -nobrowser WorkingDirectory=%h Restart=on-failure [Install] WantedBy=multi-user.target
Save and quit the file (control-o, enter, control-x).
Managing the systemd user service
With the systemd user service in place, you can now use
systemctl --user commands to manipulate the service:
To start the service now and enable the service on boot:
systemctl enable --now --user sonarr
To check the status of the service:
systemctl status --user sonarr
You can also use commands such as
disable, etc. Just don't forget the
If you make any modifications to the service, don't forget to reload the daemon with
systemctl --user daemon-reload