From 0112876df6d5667ae6d469e54efaff57a52041ca Mon Sep 17 00:00:00 2001 From: Tomas Korbar Date: Tue, 4 Feb 2025 16:21:36 +0100 Subject: [PATCH] Enabled libsystemd and change unbound service type to notify-reload "notify-reload" service type allows unbound to notify systemd not only about its readiness on startup but also about start and finish of reloading process. Resolves: RHEL-77790 --- unbound.service | 2 +- unbound.spec | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/unbound.service b/unbound.service index 49dc7bd..c823136 100644 --- a/unbound.service +++ b/unbound.service @@ -8,7 +8,7 @@ Before=nss-lookup.target Wants=nss-lookup.target [Service] -Type=simple +Type=notify-reload EnvironmentFile=-/etc/sysconfig/unbound ExecStartPre=/usr/sbin/unbound-checkconf ExecStartPre=/bin/bash -c 'if [ ! "$DISABLE_UNBOUND_ANCHOR" == "yes" ]; then /usr/sbin/unbound-anchor -a /var/lib/unbound/root.key -c /etc/unbound/icannbundle.pem -f /etc/resolv.conf -R; else echo "Updates of root keys with unbound-anchor is disabled"; fi' diff --git a/unbound.spec b/unbound.spec index 5aef89c..2f24cfc 100644 --- a/unbound.spec +++ b/unbound.spec @@ -2,7 +2,7 @@ %{?!with_python3: %global with_python3 1} %{?!with_munin: %global with_munin 1} %bcond_without dnstap -%bcond_with systemd +%bcond_without systemd %bcond_without doh %global _hardened_build 1 @@ -30,7 +30,7 @@ Summary: Validating, recursive, and caching DNS(SEC) resolver Name: unbound Version: 1.16.2 -Release: 10%{?extra_version:.%{extra_version}}%{?dist} +Release: 11%{?extra_version:.%{extra_version}}%{?dist} License: BSD Url: https://nlnetlabs.nl/projects/unbound/ Source: https://nlnetlabs.nl/downloads/%{name}/%{name}-%{version}%{?extra_version}.tar.gz @@ -479,6 +479,10 @@ popd %{_prefix}/lib/dracut/modules.d/99unbound %changelog +* Tue Feb 04 2025 Tomas Korbar - 1.16.2-11 +- Enabled libsystemd and change unbound service type to notify-reload +- Resolves: RHEL-77790 + * Tue Feb 04 2025 Tomas Korbar - 1.16.2-10 - Add dracut module - Resolves: RHEL-77789