Add output for service restart message

This commit is contained in:
Lord Hepipud 2019-11-02 17:42:56 +01:00
parent 8a3c8c4102
commit cdd1cf8189

View file

@ -5,6 +5,7 @@ function Restart-IcingaService()
); );
if (Get-Service $Service -ErrorAction SilentlyContinue) { if (Get-Service $Service -ErrorAction SilentlyContinue) {
Write-Host ([string]::Format('Restarting service "{0}"', $Service));
Restart-Service $Service; Restart-Service $Service;
} }
} }