From e91f35e030cdd0752d7a73b257210962e7d8b180 Mon Sep 17 00:00:00 2001 From: plowsof Date: Mon, 2 Jan 2023 05:18:48 +0000 Subject: [PATCH] win-service: enable auto startup --- src/daemonizer/windows_service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemonizer/windows_service.cpp b/src/daemonizer/windows_service.cpp index 846f6c071..5fcc469e9 100644 --- a/src/daemonizer/windows_service.cpp +++ b/src/daemonizer/windows_service.cpp @@ -196,7 +196,7 @@ bool install_service( , 0 //, GENERIC_EXECUTE | GENERIC_READ , SERVICE_WIN32_OWN_PROCESS - , SERVICE_DEMAND_START + , SERVICE_AUTO_START , SERVICE_ERROR_NORMAL , full_command.c_str() , nullptr