Skip to content

Traktarr How To Set Up Multiple Instance Of Traktarr (Kaiser)

desimaniac edited this page Feb 12, 2020 · 6 revisions

How To Set Up Multiple Instance Of Traktarr (originally by Kaiser; modified by desimaniac)

< desimaniac: could prob be replaced with a script that calls on different config files >

Note: You will only need this if you are running multiple instance of sonarrx or radarrx because this will point to different instances of sonarr, for example using it for animes specific sonarr or 1080remux radarr movies and we will use systemd, no cron job. Also this is assuming you have installed Traktarr (by l3uddz)

Config

  1. First of all, we are going to make a copy of the config.json as well. Make sure to name it something similar or easy to remember hence why naming it to something similar with the traktarr-animes.py in my case I have named it config-animes.json.

    cp /opt/traktarr/config.json /opt/traktarr/config-animes.json

    Note: Don't forget to edit the new config-animes.json file to add your sonarrx or radarrx api key.

Systemd Setup

  1. First head over to cd /etc/systemd/system/ then we are going to make a copy of the service file for the traktarr.service again naming it something similar in my case I am going to be naming it traktarr-animes.service

    sudo cp traktarr.service traktarr-animes.service
  2. Then we want to make sure to edit the file and point it to the new traktarr-animes.py

    sudo nano traktarr-animes.service
  3. Edit the ExecStart=/usr/bin/python3 /opt/traktarr.py run to ExecStart=/usr/bin/python3 /opt/traktarr.py --config '/opt/trackarr/config-animes.json' --logfile '/opt/trackarr/activity-animes.log' run.

    save the file by pressing

    ctrl + o

    Then to exit

    ctrl + x

Shortcut

Lastly we are going to make a shortcut called 'traktarr-animes' so that we can access it anywhere just like traktarr shows arg arg.

  1. Create the following file in '/usr/local/bin/traktarr-animes' .. `sudo nano /usr/local/bin/traktarr-animes'..

    #!/bin/bash
    
    /usr/bin/python3 /opt/traktarr.py --config '/opt/trackarr/config-animes.json' --logfile '/opt/trackarr/activity-animes.log' "$@"

    save the file by pressing

    ctrl + o

    Then to exit

    ctrl + x
  2. Then sudo chmod +x /usr/local/bin/traktarr-animes

  3. If you have done everything correctly then you should be able to do traktarr-animes and get an output :

    Traktarr Complete

Install Guides

Repository

Apps

Misc Guides

General Stuff

Linux Stuff

Plex

Organizr

Downloading

STRM

Clone this wiki locally