From 47b322cbd0bf79ad4e747b596bb4b133ea753d0b Mon Sep 17 00:00:00 2001 From: eaglegai Date: Tue, 5 Mar 2024 08:37:55 +0000 Subject: [PATCH] change ExecReload to fix reload failure --- unbound.service | 2 +- unbound.spec | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/unbound.service b/unbound.service index c59ffbf..7369e92 100644 --- a/unbound.service +++ b/unbound.service @@ -13,7 +13,7 @@ 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' ExecStart=/usr/sbin/unbound -d $UNBOUND_OPTIONS -ExecReload=/usr/sbin/unbound-control reload +ExecReload=+/bin/kill -HUP $MAINPID [Install] WantedBy=multi-user.target diff --git a/unbound.spec b/unbound.spec index e717368..3c0c425 100644 --- a/unbound.spec +++ b/unbound.spec @@ -2,7 +2,7 @@ Name: unbound Version: 1.17.1 -Release: 3 +Release: 4 Summary: Unbound is a validating, recursive, caching DNS resolver License: BSD-3-Clause Url: https://nlnetlabs.nl/projects/unbound/about/ @@ -235,6 +235,12 @@ popd %{_mandir}/man* %changelog +* Tue Mar 05 2024 gaihuiying - 1.17.1-4 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:change ExecReload to fix reload failure + * Tue Feb 27 2024 gaihuiying - 1.17.1-3 - Type:cves - CVE:CVE-2024-1488 -- Gitee