[ 
https://issues.apache.org/jira/browse/DAEMON-383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17951794#comment-17951794
 ] 

Jean-Frederic Clere commented on DAEMON-383:
--------------------------------------------

2025-05-15 08:13:47] [debug] ( prunsrv.c:1696) [ 2928] Service 15 signalled.
https://microsoft.github.io/windows-docs-rs/doc/windows/Win32/System/Services/constant.SERVICE_CONTROL_PRESHUTDOWN.html
OK that is doable

> Provide option for service stop using Windows PRESHUTDOWN event
> ---------------------------------------------------------------
>
>                 Key: DAEMON-383
>                 URL: https://issues.apache.org/jira/browse/DAEMON-383
>             Project: Commons Daemon
>          Issue Type: Improvement
>          Components: Procrun, prunsrv
>    Affects Versions: 1.1.0
>            Reporter: George McCone
>            Priority: Major
>
> Starting with Windows Vista, Services can be configured to be shutdown in 
> either one of two groups. The normal group or the preshutdown group. Since 
> the normal group is all shutdown concurrently, this can cause services that 
> are dependent on other service to fail during shutdown. If the service has 
> been registered as a preshutdown service, it is notified to stop prior to the 
> normal group.
> Being able to configure preshutdown can be very important if one of your 
> services is an infrastructure service (such as a Database or JMS Server), 
> being able to have the services start as a dependency and shutdown as a 
> preshutdown makes sure these resources are available during the entire 
> lifecycle for a system.
> A description can be found here.
> https://msdn.microsoft.com/en-us/library/windows/desktop/ms685149(v=vs.85).aspx



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to