Bug 19629

Summary: /etc/rc.sysctl can't set all syctls
Product: Base System Reporter: sjr <sjr>
Component: confAssignee: Doug Barton <dougb>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description sjr 2000-07-01 21:40:00 UTC
	/etc/rc.sysctl doesn't appear to be able to set the firewall
	variables (or anything else that is modloaded after it is
	sourced).

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.

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.
Comment 1 Sheldon Hearn freebsd_committer freebsd_triage 2000-07-03 11:10:05 UTC
Responsible Changed
From-To: freebsd-bugs->imp

Over to rc.sysctl's author.
Comment 2 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2001-11-21 00:47:43 UTC
Responsible Changed
From-To: imp->dougb

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).
Comment 3 Doug Barton freebsd_committer freebsd_triage 2002-03-17 08:36:44 UTC
State Changed
From-To: open->analyzed


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.
Comment 4 cschmidt 2002-04-12 09:46:26 UTC
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 ..."?
Comment 5 Doug Barton freebsd_committer freebsd_triage 2002-04-15 02:35:31 UTC
State Changed
From-To: analyzed->closed


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.