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; +}