Feature: Allow JEA-Session to update IfW process priority (#776)

* Improves JEA-Sessions by allowing the daemon to update the IfW process priority

* Adds changelog
This commit is contained in:
Lord Hepipud 2025-01-30 14:15:21 +01:00 committed by GitHub
parent 1c993bae1d
commit 2668e35436
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View file

@ -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)

View file

@ -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