1
0
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:
Georgi Kodinov
2011-12-13 17:44:19 +02:00
parent 76383243b2
commit a64a25baf9
3 changed files with 35 additions and 1 deletions

View File

@ -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);
}