diff --git a/doc/100-General/10-Changelog.md b/doc/100-General/10-Changelog.md index 4f9320b..7bb6c72 100644 --- a/doc/100-General/10-Changelog.md +++ b/doc/100-General/10-Changelog.md @@ -19,6 +19,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic * [#766](https://github.com/Icinga/icinga-powershell-framework/issues/766) Adds argument `-IntervalInSeconds` for `Enable-IcingaServiceRecovery` to allow setting a custom time interval for the service to restart, while setting the default to 120 seconds (2 minutes) * [#772](https://github.com/Icinga/icinga-powershell-framework/pull/772) Adds new Metric over Time handling +* [#776](https://github.com/Icinga/icinga-powershell-framework/pull/776) Improves JEA-Sessions by allowing the daemon to update the IfW process priority, as with v1.13.0 we want to ensure that we always run as "Below Normal" ## 1.13.0 Beta-2 (2024-09-19) diff --git a/lib/daemon/Start-IcingaPowerShellDaemon.psm1 b/lib/daemon/Start-IcingaPowerShellDaemon.psm1 index 33685c1..3a33402 100644 --- a/lib/daemon/Start-IcingaPowerShellDaemon.psm1 +++ b/lib/daemon/Start-IcingaPowerShellDaemon.psm1 @@ -52,6 +52,9 @@ function Start-IcingaForWindowsDaemon() Write-IcingaFileSecure -File ($args[0]) -Value $PID; + # Make sure a new JEA session is always updated with the correct process priority + Start-IcingaWindowsScheduledTaskProcessPriority; + $Global:Icinga.Protected.JEAContext = $TRUE; $Global:Icinga.Protected.RunAsDaemon = $TRUE; # Todo: Add config for active background tasks. Set it to 20 for the moment