From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: Re: [PATCH] Fix the status check of unbound Date: Mon, 12 Jun 2017 18:06:41 +0100 Message-ID: <1497287201.21214.25.camel@ipfire.org> In-Reply-To: <20170610105644.28854-1-christian+ipfire@kohlsted.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3952833455521268490==" List-Id: --===============3952833455521268490== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Hello Christian, thank you very much for your submissing. What is the bug this is trying to fix? I never noticed that something is not working okay here. Best, -Michael On Sat, 2017-06-10 at 12:56 +0200, Christian Kohlstedde wrote: > 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 >   --===============3952833455521268490== Content-Type: application/pgp-signature Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="signature.asc" MIME-Version: 1.0 LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KVmVyc2lvbjogR251UEcgdjIKCmlRSWNCQUFC Q2dBR0JRSlpQc29oQUFvSkVJQjU4UDl2a0FrSDl6UVFBSitoelRDeUIwVkxMS0F4bHNDSnJXd2EK TEtKNDVMd3RlYkhMYTNseDJQTnBTZVBnQ0FLdmcxam1QMkxkdGo1Q2dTWDdsZ0t6OCthMlJ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