mirror of
https://github.com/Icinga/icinga2.git
synced 2026-02-03 20:40:17 -05:00
Merge d7f8483168 into 274a0e39d5
This commit is contained in:
commit
77db4bf060
1 changed files with 8 additions and 0 deletions
|
|
@ -791,6 +791,14 @@ static int SetupService(bool install, int argc, char **argv)
|
|||
return 1;
|
||||
}
|
||||
|
||||
SERVICE_DELAYED_AUTO_START_INFO sdDASI = { TRUE };
|
||||
if (!ChangeServiceConfig2(schService, SERVICE_CONFIG_DELAYED_AUTO_START_INFO, &sdDASI)) {
|
||||
printf("ChangeServiceConfig2 failed (%d)\n", GetLastError());
|
||||
CloseServiceHandle(schService);
|
||||
CloseServiceHandle(schSCManager);
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (!StartService(schService, 0, nullptr)) {
|
||||
printf("StartService failed (%d)\n", GetLastError());
|
||||
CloseServiceHandle(schService);
|
||||
|
|
|
|||
Loading…
Reference in a new issue