From 9537b56d7bdaaaff60e3abf6cbca2a2913a9f7c1 Mon Sep 17 00:00:00 2001 From: Tomas Korbar Date: Tue, 4 Feb 2025 10:53:14 +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-77611 --- unbound.service | 2 +- unbound.spec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/unbound.service b/unbound.service index 86ada76..66a8a34 100644 --- a/unbound.service +++ b/unbound.service @@ -12,7 +12,7 @@ Before=nss-lookup.target Wants=nss-lookup.target [Service] -Type=simple +Type=notify-reload EnvironmentFile=-/etc/sysconfig/unbound ExecStartPre=/usr/sbin/unbound-checkconf ExecStart=/usr/sbin/unbound -d $UNBOUND_OPTIONS diff --git a/unbound.spec b/unbound.spec index dc428f5..dd15b60 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 %bcond_with redis