mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Bug#11754011: 45546: START WINDOWS SERVICE, THEN EXECUTE WHAT IS NEEDED.
Added a global read-only option slow-start-timeout to control the Windows service control manager's service start timeout, that was currently hard-coded to be 15 seconds. The default of the new option is 15 seconds. The timeout can also be set to 0 (to mean no timeout applicable).
This commit is contained in:
@ -276,7 +276,13 @@ error:
|
||||
void NTService::SetRunning()
|
||||
{
|
||||
if (pService)
|
||||
pService->SetStatus(SERVICE_RUNNING,NO_ERROR, 0, 0, 0);
|
||||
pService->SetStatus(SERVICE_RUNNING, NO_ERROR, 0, 0, 0);
|
||||
}
|
||||
|
||||
void NTService::SetSlowStarting(unsigned long timeout)
|
||||
{
|
||||
if (pService)
|
||||
pService->SetStatus(SERVICE_START_PENDING,NO_ERROR, 0, 0, timeout);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user