-
Notifications
You must be signed in to change notification settings - Fork 132
Traktarr How To Set Up Multiple Instance Of Traktarr (Kaiser)
Originally by Kaiser; modified by desimaniac
< desimaniac: could also 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)
-
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 thetraktarr-animes.py
in my case I have named itconfig-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.
-
First head over to
cd /etc/systemd/system/
then we are going to make a copy of the service file for thetraktarr.service
again naming it something similar in my case I am going to be naming ittraktarr-animes.service
sudo cp traktarr.service traktarr-animes.service
-
Then we want to make sure to edit the file and point it to the new
traktarr-animes.py
sudo nano traktarr-animes.service
-
Edit the
ExecStart=/usr/bin/python3 /opt/traktarr.py run
toExecStart=/usr/bin/python3 /opt/traktarr/traktarr.py --config '/opt/traktarr/config-animes.json' --logfile '/opt/traktarr/activity-animes.log' run
.save the file by pressing
ctrl + o
Then to exit
ctrl + x
-
Enable and start the service
sudo systemctl daemon-reload sudo systemctl enable traktarr-animes.service sudo systemctl start traktarr-animes.service
Lastly we are going to make a shortcut called 'traktarr-animes' so that we can access it anywhere just like traktarr shows arg arg
.
-
Create the following file in '/usr/local/bin/traktarr-animes' .. `sudo nano /usr/local/bin/traktarr-animes'..
#!/bin/bash CONFIGFILE='config-animes.json' LOGFILE='activity-animes.log' /usr/bin/python3 /opt/traktarr/traktarr.py --config "/opt/traktarr/$CONFIGFILE" --logfile "/opt/traktarr/$LOGFILE" "$@"
save the file by pressing
ctrl + o
Then to exit
ctrl + x
-
Then
sudo chmod +x /usr/local/bin/traktarr-animes
-
If you have done everything correctly then you should be able to do
traktarr-animes
and get an output :
- airdcpp
- Airsonic
- alltube
- always
- amongus
- Apprise
- archivebox
- arrX (SonarrX, RadarrX, BazarrX)
- AssHama
- autoscan
- Bazarrx
- Beets
- Bitwarden
- Booksonic
- Bookstack
- btrfsmaintenance
- calibre-web
- calibre
- Coder
- comicstreamer
- comixed
- couchpotato
- Dashmachine
- deemix
- deezloader-remix
- Deluge
- DelugeVPN
- Drive STRM
- eBooks: Calibre and Calibre web
- emby2
- embystat
- EPMS
- Filebot
- Filebrowser
- filezilla
- FlareSolverr
- Funkwhale
- Gazee
- Gitea
- Glances
- Goplaxt
- gotify
- grafana
- Guacamole
- Handbrake
- Heimdall
- Hetzner NFS VLAN
- influxdb
- InvoiceNinja
- JDownloader2
- Jellyfin
- Jirafeau
- KCPTUN
- Kitana
- komga
- Krusader
- LazyLibrarian
- lidarrx
- Logarr
- Mango
- Mediabutler
- medusa
- Mellow
- Minecraft
- Monitorr
- Mylar
- mylar3
- navidrome
- Nextcloud
- NowShowing
- NZBHydra (v1)
- ombix
- Organizr (v1)
- ouroboros
- overseerr
- paperless-ng
- plex2
- Pyload
- qBittorrent
- qbittorrentvpn
- Quassel
- RadarrX
- redbot
- requestrr
- requestrrx
- resilio-sync
- rocketchat
- sickchill
- searx
- SonarrX
- Speedtest
- SSHswifty
- stash
- Subsonic
- SyncLounge
- Tdarr
- telegraf
- Telly
- TheLounge
- transmissionvpn
- transmissionx
- ubooquity
- Unifi
- unmanic
- Varken
- vnstat
- wallabag
- Watchtower
- Wordpress
- Xteve
- ZNC
- Custom python plexlibrary libraries
- Speed up Plex / Emby / Jellyfin
- Tautulli Custom Scripts
- Plex Scanners and Agents