This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-daemon.git


The following commit(s) were added to refs/heads/master by this push:
     new c392766  Fix DAEMON-439 - Updating startup mode to delayed updated to 
manual
c392766 is described below

commit c392766dba53f952f2e7828d7f33452a6cb9b63d
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Nov 18 16:46:49 2025 +0000

    Fix DAEMON-439 - Updating startup mode to delayed updated to manual
    
    This looks like a copy/paste error. Updating the startup mode to
    "Automatic (delayed)" now works correctly.
---
 src/changes/changes.xml                   | 1 +
 src/native/windows/apps/prunsrv/prunsrv.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 690c6db..6abb0f1 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -46,6 +46,7 @@
       <action type="fix" dev="michaelo">Document --enable-preview</action>
       <action type="fix" dev="michaelo">Fix first appearance of 
--enable-native-access</action>
       <action type="fix" issue="DAEMON-398" dev="jfclere">Fix redirection 
issues on some OS versions by using recommended method to redirect stdout and 
stderr</action>
+      <action type="fix" issue="DAEMON-439" dev="markt">Fix updating of 
startup mode to 'Automatic (delayed)' being incorrectly processed as an update 
to 'Manual'</action>
       <action type="fix" issue="DAEMON-468" dev="ggregory" 
due-to="Jean-Frederic Clere, Mark Thomas, Sebb, Gary Gregory">Fix timeout 
handling in procrun #238.</action>
       <action type="fix" issue="DAEMON-472" dev="markt">Replace RTF version of 
license header with plain text version of full license in about box for Procrun 
monitor application.</action>
       <action type="fix" issue="DAEMON-475" dev="markt">Service should be 
marked as stopped if the service worker crashes.</action>
diff --git a/src/native/windows/apps/prunsrv/prunsrv.c 
b/src/native/windows/apps/prunsrv/prunsrv.c
index c870fdd..a26ef06 100644
--- a/src/native/windows/apps/prunsrv/prunsrv.c
+++ b/src/native/windows/apps/prunsrv/prunsrv.c
@@ -1126,7 +1126,7 @@ static BOOL docmdUpdateService(LPAPXCMDLINE lpCmdline)
         /* Update the --Startup mode */
         if (ST_STARTUP & APXCMDOPT_FOUND) {
             if (!lstrcmpiW(SO_STARTUP, PRSRV_DELAYED)) {
-                dwStart = SERVICE_DEMAND_START;
+                dwStart = SERVICE_AUTO_START;
                 bDelayedStart = TRUE;
             }
             else if (!lstrcmpiW(SO_STARTUP, PRSRV_AUTO))

Reply via email to