mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 06:16:37 +01:00
CA-192640: Don't log exceptions when HealthCheck service is not installed (part 2)
Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
This commit is contained in:
parent
a887faa5f1
commit
1de9f35566
@ -1,4 +1,4 @@
|
||||
/* Copyright (c) Citrix Systems Inc.
|
||||
/* Copyright (c) Citrix Systems Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms,
|
||||
@ -71,8 +71,15 @@ namespace XenAdmin.Actions
|
||||
protected override void Run()
|
||||
{
|
||||
ServiceController sc = new ServiceController(HEALTHCHECKSERVICENAME);
|
||||
try
|
||||
{
|
||||
if (sc.Status != ServiceControllerStatus.Running)
|
||||
return;
|
||||
}
|
||||
catch
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
NamedPipeClientStream pipeClient = new NamedPipeClientStream(".", HealthCheckSettings.HEALTH_CHECK_PIPE, PipeDirection.Out);
|
||||
int retryCount = 120;
|
||||
|
Loading…
Reference in New Issue
Block a user