mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 21:23:03 +01:00
When run as a specific user, stopping engine service stops guardian, like with FB 1.0x LocalSystem.
This commit is contained in:
parent
bcc89100dd
commit
8f13798cdf
@ -256,7 +256,13 @@ int CLIB_ROUTINE main( int argc, char **argv)
|
|||||||
status = SERVICES_install(manager, ISCGUARD_SERVICE,
|
status = SERVICES_install(manager, ISCGUARD_SERVICE,
|
||||||
ISCGUARD_DISPLAY_NAME, ISCGUARD_EXECUTABLE, directory,
|
ISCGUARD_DISPLAY_NAME, ISCGUARD_EXECUTABLE, directory,
|
||||||
NULL, sw_startup, username, password, svc_error);
|
NULL, sw_startup, username, password, svc_error);
|
||||||
if (status == FB_SUCCESS)
|
status2 = FB_SUCCESS;
|
||||||
|
if (username != 0)
|
||||||
|
{
|
||||||
|
status2 = SERVICES_grant_access_rights(ISCGUARD_SERVICE,
|
||||||
|
username, svc_error);
|
||||||
|
}
|
||||||
|
if (status == FB_SUCCESS && status2 == FB_SUCCESS)
|
||||||
ib_printf("Service \"%s\" successfully created.\n", ISCGUARD_DISPLAY_NAME);
|
ib_printf("Service \"%s\" successfully created.\n", ISCGUARD_DISPLAY_NAME);
|
||||||
|
|
||||||
/* Set sw_startup to manual in preparation for install the service */
|
/* Set sw_startup to manual in preparation for install the service */
|
||||||
|
Loading…
Reference in New Issue
Block a user