Add output for service restart message

This commit is contained in:
Lord Hepipud 2019-11-02 17:42:56 +01:00
parent 2ac93e6943
commit b6f3d52f96

View file

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