mabrarov opened a new pull request #6: DAEMON-243: Failure of Windows service 
when child process fails
URL: https://github.com/apache/commons-daemon/pull/6
 
 
   prunsrv should to not report about stopped status of Windows service when 
its child process (`StartMode` == `exe`) exits with non-zero exit code (i.e. 
fails) - this behavior is treated by Windows service control manager as a 
failure of Windows service and service recovery actions can be applied for this 
case.
   
   This feature provides users of prunsrv ability to pass failure of 
application (as non-zero exit code of that application) to Windows service 
control manager and to use standard service recovery actions to handle such 
cases.
   
   Current behavior of prunsrv is to report about stopped state with the same 
exit code  as child process returned. This behavior doesn't trigger service 
recovery actions without 
[`FailureActionsOnNonCrashFailures`](https://msdn.microsoft.com/ru-ru/library/windows/desktop/ms685937(v=vs.85).aspx)
 flag for the service and this flag is not configured by prunsrv when it 
installs new service.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to