From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias Fischer To: development@lists.ipfire.org Subject: [PATCH] Suggested fix for 'rngd' service status Date: Tue, 11 Sep 2018 20:28:24 +0200 Message-ID: <20180911182824.28272-1-matthias.fischer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7761133178845091052==" List-Id: --===============7761133178845091052== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, Since https://git.ipfire.org/?p=3Dipfire-2.x.git;a=3Dcommitdiff;h=3Dfd0a0384f= 07b399e9cb4cf46b4c5722b809ffe6a 'rngd' is running again with much higher values. STATUS / ENTROPY shows RUNNI= NG. Thanks! ;-) But '/var/run/rngd.pid' is created with wrong rights (0600). Therefore, STATU= S / SERVICES tells me 'rngd' is stopped. The suggested fix checks whether '/var/run/rngd.pid' exists and sets rights a= ccordingly. Best, Matthias Signed-off-by: Matthias Fischer --- src/initscripts/system/rngd | 3 +++ 1 file changed, 3 insertions(+) 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 2.18.0 --===============7761133178845091052==--