Set Icinga service to start automatically.

Fixes #6050
This commit is contained in:
Gunnar Beutner 2014-04-26 23:22:12 +02:00
parent 9b9ee5c425
commit 0c60799b6a
1 changed files with 3 additions and 0 deletions

View File

@ -533,6 +533,9 @@ static int SetupService(bool install, int argc, char **argv)
} else
printf("Service installed successfully\n");
ChangeServiceConfig(schService, SERVICE_NO_CHANGE, SERVICE_AUTO_START,
SERVICE_ERROR_NORMAL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
SERVICE_DESCRIPTION sdDescription = { "The Icinga 2 monitoring application" };
ChangeServiceConfig2(schService, SERVICE_CONFIG_DESCRIPTION, &sdDescription);