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

11 lines
247 B
PowerShell
Raw Normal View History

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