public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] Suggested fix for 'rngd' service status
@ 2018-09-11 18:28 Matthias Fischer
  2018-09-11 19:55 ` Peter Müller
  0 siblings, 1 reply; 3+ messages in thread
From: Matthias Fischer @ 2018-09-11 18:28 UTC (permalink / raw)
  To: development

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

Hi,

Since https://git.ipfire.org/?p=ipfire-2.x.git;a=commitdiff;h=fd0a0384f07b399e9cb4cf46b4c5722b809ffe6a
'rngd' is running again with much higher values. STATUS / ENTROPY shows RUNNING. Thanks! ;-)

But '/var/run/rngd.pid' is created with wrong rights (0600). Therefore, STATUS / SERVICES tells me
'rngd' is stopped.

The suggested fix checks whether '/var/run/rngd.pid' exists and sets rights accordingly.

Best,
Matthias

Signed-off-by: Matthias Fischer <matthias.fischer(a)ipfire.org>
---
 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
 		;;
 
 	stop)
-- 
2.18.0


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

end of thread, other threads:[~2018-09-12  8:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-11 18:28 [PATCH] Suggested fix for 'rngd' service status Matthias Fischer
2018-09-11 19:55 ` Peter Müller
2018-09-12  8:29   ` Arne Fitzenreiter

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