From 364a01047e47e21072a7339946f82e335a09c572 Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Wed, 13 Mar 2024 16:56:56 +0100 Subject: [PATCH] Adds new command `Restart-Icinga` to restart both, the Icinga Agent and Icinga for Windows --- doc/100-General/10-Changelog.md | 1 + lib/core/windows/Restart-Icinga.psm1 | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 lib/core/windows/Restart-Icinga.psm1 diff --git a/doc/100-General/10-Changelog.md b/doc/100-General/10-Changelog.md index fb3c8f0..b963ba9 100644 --- a/doc/100-General/10-Changelog.md +++ b/doc/100-General/10-Changelog.md @@ -27,6 +27,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic * [#688](https://github.com/Icinga/icinga-powershell-framework/pull/688) Adds new handling to add scheduled tasks in Windows for interacting with Icinga for Windows core functionality as well as an auto renewal task for the Icinga for Windows certificate generation * [#690](https://github.com/Icinga/icinga-powershell-framework/pull/690) Adds automatic renewal of the `icingaforwindows.pfx` certificate for the REST-Api daemon in case the certificate is not yet present, valid or changed during the runtime of the daemon while also making the `icingaforwindows.pfx` mandatory for all installations, regardless of JEA being used or not * [#692](https://github.com/Icinga/icinga-powershell-framework/pull/692) Renames `Restart-IcingaWindowsService` to `Restart-IcingaForWindows` and adds alias for backwards compatibility to start unifying the Icinga for Windows cmdlets +* [#693](https://github.com/Icinga/icinga-powershell-framework/pull/693) Adds new command `Restart-Icinga` to restart both, the Icinga Agent and Icinga for Windows ## 1.11.2 (tbd) diff --git a/lib/core/windows/Restart-Icinga.psm1 b/lib/core/windows/Restart-Icinga.psm1 new file mode 100644 index 0000000..378ebac --- /dev/null +++ b/lib/core/windows/Restart-Icinga.psm1 @@ -0,0 +1,5 @@ +function Restart-Icinga() +{ + Restart-IcingaService -Service 'icinga2'; + Restart-IcingaForWindows; +}