prunsrv.exe //US// always returns exit code 6, even if successful
-----------------------------------------------------------------
Key: DAEMON-106
URL: https://issues.apache.org/jira/browse/DAEMON-106
Project: Commons Daemon
Issue Type: Bug
Affects Versions: 1.0.1
Environment: Windows
Reporter: Joel Klein
Priority: Minor
When using tomcat6.exe from
https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/res/procrun/, the //US//
command always returns 6:
tomcat6.exe //US//servicename --Startup=auto
returns exit code 6 even though the command successfully changed the service
Startup Type to auto.
>From the source code, it looks as if docmdUpdateService just never sets the
>variable rv to TRUE anywhere, and the only return statements are "return
>FALSE" (when the code can't get a handle to the service) and return rv at the
>end.
When we invoke this from our software's installer, we'd like to be able to
check the exit code and trust whether it means success or failure, but as it
stands we have to not check the exit code or check things other than the exit
code to test for success.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.