Date: Thu, 08 Nov 2012 16:33:12 +0400 From: "Anton Yuzhaninov" <ayuzhaninov@openstat.ru> To: FreeBSD-gnats-submit@FreeBSD.org Subject: conf/173471: [patch] can't set sysctls from /etc/sysctl.conf for OIDs created by loadable modules Message-ID: <E1TWRIG-000GJj-Cb@mail.openstat.ru> Resent-Message-ID: <201211081240.qA8Ce10h038453@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 173471 >Category: conf >Synopsis: [patch] can't set sysctls from /etc/sysctl.conf for OIDs created by loadable modules >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Nov 08 12:40:01 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Anton Yuzhaninov >Release: FreeBSD 10.0-CURRENT i386 >Organization: >Environment: System: FreeBSD citrin.office.vega.ru 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r241615: Tue Oct 23 17:20:03 MSK 2012 root@citrin.office.vega.ru:/usr/obj/usr/src/sys/NK i386 >Description: Some sysctl OID is created only after loading kernel module, where the defined. E. g. net.inet.ip.dummynet.* sysctls can be set only after dummynet module is loaded. >How-To-Repeat: Add to /etc/rc.conf kld_list="ipfw dummynet" Add to /etc/sysctl.conf net.inet.ip.dummynet.io_fast=1 After reboot this sysctl will no be set. >Fix: To fix 'REQUIRE: kld' should be added to /etc/rc.d/sysctl But this creates circular dependency, which can be resolved by removing 'REQUIRE: sysctl' from /etc/rc.d/hostid It seems to be /etc/rc.d/hostid don't not depend on /etc/sysctl.conf settings. --- patch begins here --- Index: etc/rc.d/hostid =================================================================== --- etc/rc.d/hostid (revision 241615) +++ etc/rc.d/hostid (working copy) @@ -28,7 +28,6 @@ # # PROVIDE: hostid -# REQUIRE: sysctl # KEYWORD: nojail . /etc/rc.subr Index: etc/rc.d/sysctl =================================================================== --- etc/rc.d/sysctl (revision 241615) +++ etc/rc.d/sysctl (working copy) @@ -4,6 +4,7 @@ # # PROVIDE: sysctl +# REQUIRE: kld . /etc/rc.subr --- patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1TWRIG-000GJj-Cb>