From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter =?utf-8?q?M=C3=BCller?= To: development@lists.ipfire.org Subject: Re: [PATCH] Suggested fix for 'rngd' service status Date: Tue, 11 Sep 2018 21:55:14 +0200 Message-ID: In-Reply-To: <20180911182824.28272-1-matthias.fischer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5776380890781085953==" List-Id: --===============5776380890781085953== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello, I support this patch. Quite a while ago, there was a similar one on this list but was not merged eventually. Michael stated it should be fixed in the upstream channel (which is basically right) - however, looking at our recent trouble with this software, I doubt it makes much sense to delay this until it reached the origin repository. Best regards, Peter M=C3=BCller > Hi, >=20 > Since https://git.ipfire.org/?p=3Dipfire-2.x.git;a=3Dcommitdiff;h=3Dfd0a038= 4f07b399e9cb4cf46b4c5722b809ffe6a > 'rngd' is running again with much higher values. STATUS / ENTROPY shows RUN= NING. Thanks! ;-) >=20 > But '/var/run/rngd.pid' is created with wrong rights (0600). Therefore, STA= TUS / SERVICES tells me > 'rngd' is stopped. >=20 > The suggested fix checks whether '/var/run/rngd.pid' exists and sets rights= accordingly. >=20 > Best, > Matthias >=20 > Signed-off-by: Matthias Fischer > --- > src/initscripts/system/rngd | 3 +++ > 1 file changed, 3 insertions(+) >=20 > diff --git a/src/initscripts/system/rngd b/src/initscripts/system/rngd > index 91b70a7b4..8fe5c9363 100644 > --- a/src/initscripts/system/rngd > +++ b/src/initscripts/system/rngd > @@ -15,6 +15,9 @@ case "${1}" in > start) > boot_mesg "Starting Random Number Generator Daemon..." > loadproc /usr/sbin/rngd --quiet > + if [ -f "/var/run/rngd.pid" ]; then > + chmod 644 /var/run/rngd.pid > + fi > ;; > =20 > stop) >=20 --=20 Microsoft DNS service terminates abnormally when it recieves a response to a DNS query that was never made. Fix Information: Run your DNS service on a different platform. -- bugtraq --===============5776380890781085953==--