From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Kohlstedde To: development@lists.ipfire.org Subject: [PATCH] Fix the status check of unbound Date: Sat, 10 Jun 2017 12:56:44 +0200 Message-ID: <20170610105644.28854-1-christian+ipfire@kohlsted.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6063205361216907301==" List-Id: --===============6063205361216907301== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit From: Christian Kohlstedde --- 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 --===============6063205361216907301==--