From sjr@home.net  Sat Jul  1 13:33:37 2000
Return-Path: <sjr@home.net>
Received: from cc158233-a.catv1.md.home.com (cc158233-a.catv1.md.home.com [24.3.25.17])
	by hub.freebsd.org (Postfix) with ESMTP id 21FA437BA10
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  1 Jul 2000 13:33:31 -0700 (PDT)
	(envelope-from sjr@home.net)
Received: (from sjr@localhost)
	by cc158233-a.catv1.md.home.com (8.9.3/8.9.3) id QAA37056;
	Sat, 1 Jul 2000 16:33:26 -0400 (EDT)
	(envelope-from sjr)
Message-Id: <200007012033.QAA37056@cc158233-a.catv1.md.home.com>
Date: Sat, 1 Jul 2000 16:33:26 -0400 (EDT)
From: sjr@home.com
Sender: sjr@home.net
Reply-To: sjr@home.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: /etc/rc.sysctl can't set all syctls
X-Send-Pr-Version: 3.2

>Number:         19629
>Category:       conf
>Synopsis:       /etc/rc.sysctl can't set all syctls
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 01 13:40:00 PDT 2000
>Closed-Date:    Sun Apr 14 18:39:55 PDT 2002
>Last-Modified:  Sun Apr 14 18:39:55 PDT 2002
>Originator:     Stephen J. Roznowski
>Release:        FreeBSD 4.0-20000624-STABLE i386
>Organization:
>Environment:

	

>Description:

	/etc/rc.sysctl doesn't appear to be able to set the firewall
	variables (or anything else that is modloaded after it is
	sourced).

>How-To-Repeat:

	Add net.inet.ip.fw.verbose=1 to /etc/sysctl.conf on a system
	where ipfw is modloaded. After the system boots, verbose is
	still set to zero.
>Fix:

	While there are probably several different ways of solving
	this problem, the easiest is probably to rerun rc.sysctl at
	the end of rc.


--- rc.orig	Sat Jul  1 16:31:35 2000
+++ rc	Sat Jul  1 16:32:16 2000
@@ -538,6 +538,12 @@
 	network_pass4
 fi
 
+# Set any sysctl variables that couldn't be set before.
+#
+if [ -r /etc/rc.sysctl ]; then
+	. /etc/rc.sysctl
+fi
+
 # Raise kernel security level.  This should be done only after `fsck' has
 # repaired local file systems if you want the securelevel to be greater than 1.
 #

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->imp 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Mon Jul 3 03:10:05 PDT 2000 
Responsible-Changed-Why:  
Over to rc.sysctl's author. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19629 
Responsible-Changed-From-To: imp->dougb 
Responsible-Changed-By: des 
Responsible-Changed-When: Tue Nov 20 16:47:43 PST 2001 
Responsible-Changed-Why:  
Probably up Doug's alley as he's the de-facto rc.* maintainer these days. 
Doug, if you don't want to handle this PR, please assign it to me (des). 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=19629 
State-Changed-From-To: open->analyzed 
State-Changed-By: dougb 
State-Changed-When: Sun Mar 17 00:36:44 PST 2002 
State-Changed-Why:  

Sorry for the long delay in reviewing this patch. I agree with your 
reasoning, and have committed a slightly more verbose version to 
-current. I'll MFC in a week or so. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19629 

From: Carl Schmidt <cschmidt@carbon.slackerbsd.org>
To: freebsd-gnats-submit@FreeBSD.org, sjr@home.com
Cc:  
Subject: Re: conf/19629: /etc/rc.sysctl can't set all syctls
Date: Fri, 12 Apr 2002 08:46:26 GMT

 This does not appear as though it has been MFC'ed.  In addition I
 wonder why there was a change from ". /etc/rc.sysctl ..." to
 "sh /etc/rc.sysctl ..."?
State-Changed-From-To: analyzed->closed 
State-Changed-By: dougb 
State-Changed-When: Sun Apr 14 18:35:31 PDT 2002 
State-Changed-Why:  

While everyone (including me) agrees that my change is neither 
elegant, nor perfect; it is functional. Meaning that it actually 
does set the sysctl's it can first time through, and the rest 
at the end. And given that no one has come up with a better 
solution in the last 4 weeks, I have MFC'ed the imperfect one.  



http://www.freebsd.org/cgi/query-pr.cgi?pr=19629 
>Unformatted:
