Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Oct 2000 22:59:02 -0700
From:      Doug Barton <DougB@gorean.org>
To:        "John W. De Boskey" <jwd@FreeBSD.ORG>
Cc:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/etc rc rc.shutdown src/etc/defaults rc.conf
Message-ID:  <39EA9926.F5AA4D88@gorean.org>
References:  <200010160445.VAA57829@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------F036F4C9092824EDC697F20D
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

	D'oh.... talk about timing. :) Thanks John.

"John W. De Boskey" wrote:
> 
> jwd         2000/10/15 21:45:48 PDT
> 
>   Modified files:
>     etc                  rc rc.shutdown
>   Log:
>   Having played with this commit request for a few hours, I've
>   convinced myself that it's better then what we have, but still
>   not perfect.

	Agreed. Mark has more plans along this line, but this patch is designed
to fix a number of problematic cases. 

>   In debugging the above changes, I've run into some
>   inconsistancies... rc.shutdown is run via 'init 6', but
>   does not appear to be run via '/sbin/reboot'. Thus, this
>   set of changes improves life depending on the mechanism
>   used to shut the system down.

	Yes, see http://www.FreeBSD.org/cgi/query-pr.cgi?pr=14829 for example.
Several of us have been complaining about this for a long time, to no
avail. Proposed patches have always been shot down, for one reason or
another. To add insult to injury, even when rc.shutdown is being called,
you don't always see the echo's due to a race condition of some sort, I
don't remember the exact cause, it was a while ago when it last came up.
I was planning to bring this up in the discussion that Mark was planning
to bring up subsequently. Maybe I should have mentioned it in my
previous e-mail....
 
Thanks again,

Doug
PS, you might want to commit the attached diff which accomplishes the
style fixes I mentioned in my email that crossed this one in delivery. 
-- 
        "The dead cannot be seduced."
		- Kai, "Lexx"

	Do YOU Yahoo!?
--------------F036F4C9092824EDC697F20D
Content-Type: text/plain; charset=us-ascii;
 name="entropy3.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="entropy3.diff"

--- /etc/rc	Sun Oct 15 01:07:00 2000
+++ rc	Sun Oct 15 22:42:37 2000
@@ -197,11 +197,13 @@
 				echo "Using /var/db/entropy as an entropy file"
 				cat /var/db/entropy > /dev/random 2> /dev/random
 			else
-				echo "Can't use ${entropy_file} as an entropy file, trying other sources"
+    echo "Can't use ${entropy_file} as an entropy file, trying other sources"
 				# XXX temporary until we can get the entropy
 				# harvesting rate up
-				# Entropy below is not great, but better than nothing.
-				(ps -gauxwww; iostat; vmstat; sysctl -a; dmesg) > /dev/random 2> /dev/random
+				# Entropy below is not great,
+				# but better than nothing.
+				(ps -gauxwww; iostat; vmstat; sysctl -a;
+				    dmesg) > /dev/random 2> /dev/random
 				( for i in /etc /var/run ; do
 					cd $i ; ls -al ; cat *
 				done ) > /dev/random 2> /dev/random

--------------F036F4C9092824EDC697F20D--



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39EA9926.F5AA4D88>