* [git.ipfire.org] IPFire 2.x development tree branch, next, updated. a48a2034f5320baf32c10ec877d0c3c53cf4c699
@ 2016-10-04 17:27 git
0 siblings, 0 replies; only message in thread
From: git @ 2016-10-04 17:27 UTC (permalink / raw)
To: ipfire-scm
[-- Attachment #1: Type: text/plain, Size: 2126 bytes --]
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".
The branch, next has been updated
via a48a2034f5320baf32c10ec877d0c3c53cf4c699 (commit)
from 9aa7b0469da00d4ba745b682f0c5874ffa8ac92d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit a48a2034f5320baf32c10ec877d0c3c53cf4c699
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date: Tue Oct 4 19:24:26 2016 +0200
unbound: fix update forwarders if unbound was not running
psgrep has no "-q" switch so i use pidof.
Signed-off-by: Arne Fitzenreiter <arne_f(a)ipfire.org>
-----------------------------------------------------------------------
Summary of changes:
.../init.d/networking/red.up/05-update-dns-forwarders | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
Difference in files:
diff --git a/src/initscripts/init.d/networking/red.up/05-update-dns-forwarders b/src/initscripts/init.d/networking/red.up/05-update-dns-forwarders
index be8879c..4ff2e58 100644
--- a/src/initscripts/init.d/networking/red.up/05-update-dns-forwarders
+++ b/src/initscripts/init.d/networking/red.up/05-update-dns-forwarders
@@ -3,10 +3,11 @@
# If network has not fully been brought up here, we start unbound
# so that all following scripts can rely on DNS resolution
-# Update DNS forwarders if unbound is running
-if pgrep -q unbound; then
- exec /etc/init.d/unbound update-forwarders
+pidof unbound > /dev/null
+if [ "${?}" = "0" ]; then
+ # unbound is run so update the forwarders
+ /etc/init.d/unbound update-forwarders
+else
+ # Start unbound if it is not running, yet
+ /etc/init.d/unbound start
fi
-
-# Start unbound if it is not running, yet
-exec /etc/init.d/unbound start
hooks/post-receive
--
IPFire 2.x development tree
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-10-04 17:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-04 17:27 [git.ipfire.org] IPFire 2.x development tree branch, next, updated. a48a2034f5320baf32c10ec877d0c3c53cf4c699 git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox