@ -42,4 +42,136 @@ Since the first Radarr instance will occupy port 7878, the second instance must
## Notes ##
* Though this tutorial was tested using Command Prompt, it should work with Windows Terminal as well. But, if you're feeling cautious, just go with Command Prompt.
* A previous version of this installation guide encouraged users to copy Radarr's config.xml file to Radarr-4K's data directory. However, you'll run into trouble with this method, especially if you have authentication enabled. I'd recommend starting with a clean config.xml file, created when you start the service for the first time (Step 7).
* If one Radarr instance is updated, both instances will shutdown and only the updated one will start again. To fix this, you will have to manually start the other instance, or you may want to look into using [this script by reloxx](https://www.reddit.com/r/radarr/comments/hou8ro/winps_multiple_instances_restarter/) to address the problem until an official solution is found.
* If one Radarr instance is updated, both instances will shutdown and only the updated one will start again. To fix this, you will have to manually start the other instance, or you may want to look into using the below powershell script to address the problem until an official solution is found.
## Port Checker and Restarter PowerShell Script
When you use two Radarr instances and one of it is updating, it will kill both instances ( by killing all running radarr.console.exe ).
Only the one which is updating will come back online.
To keep both online i made a powershell script which i run as a scheduled task.
It checks the ports and if one is not online, it will (re-)start the scheduled task to launch radarr.
Create a new File and name it `RadarrInstancesChecker.ps1` with the below code.
Create a scheduled task which triggers on launch and set it to repeat every 5 or 10mins.
- Trigger:
- On launch
- Repeat every 5 or 10 mins
- Action:
- Launch Application/Programm
- Enter `powershell` as programm
- Add your script as argument: `-File D:\RadarrInstancesChecker.ps1`
Adjust ur pathes, ip, ports and scheduled task names.