mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2026-02-03 04:09:29 -05:00
14 lines
391 B
PowerShell
14 lines
391 B
PowerShell
function Restart-IcingaForWindows()
|
|
{
|
|
[string]$JeaPid = Get-IcingaJEAServicePid;
|
|
|
|
Stop-IcingaService -Service 'icingapowershell';
|
|
|
|
if ((Test-IcingaJEAServiceRunning -JeaPid $JeaPid)) {
|
|
Stop-IcingaJEAProcess -JeaPid $JeaPid;
|
|
}
|
|
|
|
Restart-IcingaService -Service 'icingapowershell';
|
|
}
|
|
|
|
Set-Alias -Name 'Restart-IcingaWindowsService' -Value 'Restart-IcingaForWindows';
|