public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] Fix the status check of unbound
@ 2017-06-10 10:56 Christian Kohlstedde
  2017-06-12 17:06 ` Michael Tremer
  0 siblings, 1 reply; 3+ messages in thread
From: Christian Kohlstedde @ 2017-06-10 10:56 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 816 bytes --]

From: Christian Kohlstedde <christian(a)kohlsted.de>

---
 src/initscripts/system/unbound | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/initscripts/system/unbound b/src/initscripts/system/unbound
index 7437d93b8..04de3c1e0 100644
--- a/src/initscripts/system/unbound
+++ b/src/initscripts/system/unbound
@@ -457,7 +457,7 @@ disable_dnssec() {
 case "$1" in
 	start)
 		# Print a nicer messagen when unbound is already running
-		if pidofproc -s unbound; then
+		if pidofproc -s /usr/sbin/unbound; then
 			statusproc /usr/sbin/unbound
 			exit 0
 		fi
@@ -503,7 +503,7 @@ case "$1" in
 
 	update-forwarders)
 		# Do not try updating forwarders when unbound is not running
-		if ! pgrep unbound &>/dev/null; then
+		if pidofproc -s /usr/sbin/unbound; then
 			exit 0
 		fi
 
-- 
2.13.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-06-12 18:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-10 10:56 [PATCH] Fix the status check of unbound Christian Kohlstedde
2017-06-12 17:06 ` Michael Tremer
2017-06-12 18:56   ` Christian Kohlstedde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox