Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Jul 2000 16:33:26 -0400 (EDT)
From:      sjr@home.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   conf/19629: /etc/rc.sysctl can't set all syctls
Message-ID:  <200007012033.QAA37056@cc158233-a.catv1.md.home.com>

next in thread | raw e-mail | index | archive | help

>Number:         19629
>Category:       conf
>Synopsis:       /etc/rc.sysctl can't set all syctls
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 01 13:40:00 PDT 2000
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:


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




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