mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
12 lines
306 B
PowerShell
12 lines
306 B
PowerShell
function Restart-IcingaWindowsService()
|
|
{
|
|
[string]$JeaPid = Get-IcingaJEAServicePid;
|
|
|
|
Stop-IcingaService -Service 'icingapowershell';
|
|
|
|
if ((Test-IcingaJEAServiceRunning -JeaPid $JeaPid)) {
|
|
Stop-Process -Id $JeaPid -Force;
|
|
}
|
|
|
|
Restart-IcingaService -Service 'icingapowershell';
|
|
}
|