From b6f3d52f966d2f4be8e71ceadc355e40bfc4ac1e Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Sat, 2 Nov 2019 17:42:56 +0100 Subject: [PATCH] Add output for service restart message --- lib/core/framework/Restart-IcingaService.psm1 | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/core/framework/Restart-IcingaService.psm1 b/lib/core/framework/Restart-IcingaService.psm1 index ce0f009..4fc26e7 100644 --- a/lib/core/framework/Restart-IcingaService.psm1 +++ b/lib/core/framework/Restart-IcingaService.psm1 @@ -5,6 +5,7 @@ function Restart-IcingaService() ); if (Get-Service $Service -ErrorAction SilentlyContinue) { + Write-Host ([string]::Format('Restarting service "{0}"', $Service)); Restart-Service $Service; } }