mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Add output for service restart message
This commit is contained in:
parent
23de94de2d
commit
7db7eae32b
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue