mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 07:10:15 -05:00
Add output for service restart message
This commit is contained in:
parent
8a3c8c4102
commit
cdd1cf8189
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