mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-10 04:52:42 +01:00
Merge branch 'kay.one' of github.com:NzbDrone/NzbDrone into markus
Conflicts: NzbDrone.Core.Test/ParserTest.cs
This commit is contained in:
commit
6b26843b50
@ -1,11 +1,10 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Specialized;
|
using System.Collections.Specialized;
|
||||||
using System.Configuration.Install;
|
using System.Configuration.Install;
|
||||||
|
using System.Diagnostics;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Reflection;
|
|
||||||
using System.ServiceProcess;
|
using System.ServiceProcess;
|
||||||
using NLog;
|
using NLog;
|
||||||
using TimeoutException = System.TimeoutException;
|
|
||||||
|
|
||||||
namespace NzbDrone.Common
|
namespace NzbDrone.Common
|
||||||
{
|
{
|
||||||
@ -37,7 +36,7 @@ public virtual void Install()
|
|||||||
var serviceInstaller = new ServiceInstaller();
|
var serviceInstaller = new ServiceInstaller();
|
||||||
|
|
||||||
|
|
||||||
String[] cmdline = { @"/assemblypath=" + Assembly.GetExecutingAssembly().Location };
|
String[] cmdline = { @"/assemblypath=" + Process.GetCurrentProcess().StartInfo.FileName };
|
||||||
|
|
||||||
var context = new InstallContext("service_install.log", cmdline);
|
var context = new InstallContext("service_install.log", cmdline);
|
||||||
serviceInstaller.Context = context;
|
serviceInstaller.Context = context;
|
||||||
@ -86,6 +85,7 @@ public virtual void Stop(string serviceName)
|
|||||||
if (service == null)
|
if (service == null)
|
||||||
{
|
{
|
||||||
Logger.Warn("Unable to stop {0}. no service with that name exists.", serviceName);
|
Logger.Warn("Unable to stop {0}. no service with that name exists.", serviceName);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Logger.Info("Service is currently {0}", service.Status);
|
Logger.Info("Service is currently {0}", service.Status);
|
||||||
|
Loading…
Reference in New Issue
Block a user