unbound: Do not try removing forwarders when unbound is not running

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2016-11-29 12:26:34 +00:00
parent adb11e90df
commit cd812106b1

View File

@@ -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
;;