public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: "Peter Müller" <peter.mueller@link38.eu>
To: development@lists.ipfire.org
Subject: Re: [PATCH] Suggested fix for 'rngd' service status
Date: Tue, 11 Sep 2018 21:55:14 +0200	[thread overview]
Message-ID: <cb67f06f-16d0-9e09-31c2-2b59b4d01ae3@link38.eu> (raw)
In-Reply-To: <20180911182824.28272-1-matthias.fischer@ipfire.org>

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

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üller

> 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)
> 

-- 
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

  reply	other threads:[~2018-09-11 19:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-11 18:28 Matthias Fischer
2018-09-11 19:55 ` Peter Müller [this message]
2018-09-12  8:29   ` Arne Fitzenreiter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cb67f06f-16d0-9e09-31c2-2b59b4d01ae3@link38.eu \
    --to=peter.mueller@link38.eu \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox