Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Readarr/commit/68e12f1c5e810093805f0d28b963e25c9c208575
You should set ROOT_URL correctly, otherwise the web may not work correctly.
3 changed files with
22 additions and
6 deletions
@ -1,5 +1,4 @@
using System.Collections.Generic ;
using System.Runtime.InteropServices.ComTypes ;
namespace NzbDrone.Common.EnvironmentInfo
{
@ -1,7 +1,6 @@
using System ;
using System.Collections.Generic ;
using System.IO ;
using System.Linq ;
using NLog ;
using NzbDrone.Common ;
using NzbDrone.Common.Disk ;
@ -14,12 +14,14 @@ namespace NzbDrone.Host
{
private readonly IRuntimeInfo _runtimeInfo ;
private readonly IProcessProvider _processProvider ;
private readonly IStartupContext _startupContext ;
private readonly Logger _logger ;
public SpinService ( IRuntimeInfo runtimeInfo , IProcessProvider processProvider , Logger logger )
public SpinService ( IRuntimeInfo runtimeInfo , IProcessProvider processProvider , IStartupContext startupContext , Logger logger )
{
_runtimeInfo = runtimeInfo ;
_processProvider = processProvider ;
_startupContext = startupContext ;
_logger = logger ;
}
@ -30,13 +32,29 @@ namespace NzbDrone.Host
Thread . Sleep ( 1000 ) ;
}
_logger . Debug ( " w ait loop was terminated.") ;
_logger . Debug ( " W ait loop was terminated.") ;
if ( _runtimeInfo . RestartPending )
{
_logger . Info ( "attemptig restart." ) ;
_processProvider . SpawnNewProcess ( _runtimeInfo . ExecutingApplication , "--restart --nobrowser" ) ;
var restartArgs = GetRestartArgs ( ) ;
_logger . Info ( "Attempting restart with arguments: {0}" , restartArgs ) ;
_processProvider . SpawnNewProcess ( _runtimeInfo . ExecutingApplication , restartArgs ) ;
}
}
private string GetRestartArgs ( )
{
var args = _startupContext . PreservedArguments ;
args + = " /restart" ;
if ( ! args . Contains ( "/nobrowser" ) )
{
args + = " /nobrowser" ;
}
return args ;
}
}
}