icinga-powershell-framework/lib/core/windows/Stop-IcingaWindowsService.psm1

13 lines
320 B
PowerShell
Raw Normal View History

function Stop-IcingaForWindows()
2021-08-06 12:12:27 -04:00
{
[string]$JeaPid = Get-IcingaJEAServicePid;
Stop-IcingaService -Service 'icingapowershell';
if ((Test-IcingaJEAServiceRunning -JeaPid $JeaPid)) {
Stop-Process -Id $JeaPid -Force;
}
}
Set-Alias -Name 'Stop-IcingaWindowsService' -Value 'Stop-IcingaForWindows';