From cd812106b19a146d175fc2e13efcdc68ad04754e Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 29 Nov 2016 12:26:34 +0000 Subject: [PATCH] unbound: Do not try removing forwarders when unbound is not running Signed-off-by: Michael Tremer --- src/initscripts/init.d/unbound | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/initscripts/init.d/unbound b/src/initscripts/init.d/unbound index 01a560d404..1ecbf229ea 100644 --- a/src/initscripts/init.d/unbound +++ b/src/initscripts/init.d/unbound @@ -366,6 +366,11 @@ case "$1" in ;; update-forwarders) + # Do not try updating forwarders when unbound is not running + if ! pgrep unbound &>/dev/null; then + exit 0 + fi + update_forwarders ;; -- 2.39.5