From f1ad66717ba1c406b4cf4e226dc097f5bad40b50 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 10 Oct 2019 21:37:49 +0200 Subject: embeddable-dll-service: use on-demand activation instead of auto This prevents this from coming back after boot, since we probably want it tied to the parent process. --- embeddable-dll-service/csharp/Service.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'embeddable-dll-service') diff --git a/embeddable-dll-service/csharp/Service.cs b/embeddable-dll-service/csharp/Service.cs index 4ad9fe47..db600819 100644 --- a/embeddable-dll-service/csharp/Service.cs +++ b/embeddable-dll-service/csharp/Service.cs @@ -51,7 +51,7 @@ namespace Tunnel Win32.CloseServiceHandle(service); Remove(configFile); } - service = Win32.CreateService(scm, shortName, longName, Win32.ServiceAccessRights.AllAccess, Win32.ServiceType.Win32OwnProcess, Win32.ServiceStartType.Auto, Win32.ServiceError.Normal, pathAndArgs, null, IntPtr.Zero, "Nsi", null, null); + service = Win32.CreateService(scm, shortName, longName, Win32.ServiceAccessRights.AllAccess, Win32.ServiceType.Win32OwnProcess, Win32.ServiceStartType.Demand, Win32.ServiceError.Normal, pathAndArgs, null, IntPtr.Zero, "Nsi", null, null); if (service == IntPtr.Zero) throw new Win32Exception(Marshal.GetLastWin32Error()); try -- cgit v1.2.3-59-g8ed1b