From owner-freebsd-rc@FreeBSD.ORG Mon Feb 14 11:07:11 2011 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B8528106574B for ; Mon, 14 Feb 2011 11:07:11 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A3CFC8FC29 for ; Mon, 14 Feb 2011 11:07:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p1EB7BXV077282 for ; Mon, 14 Feb 2011 11:07:11 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p1EB7BPL077280 for freebsd-rc@FreeBSD.org; Mon, 14 Feb 2011 11:07:11 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 14 Feb 2011 11:07:11 GMT Message-Id: <201102141107.p1EB7BPL077280@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-rc@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-rc@FreeBSD.org X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Feb 2011 11:07:11 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/154554 rc [rc.d] [patch] statd and lockd fail to start o conf/153666 rc [rc.d][patch] mount filesystems from fstab over zfs da o conf/153200 rc post-boot /etc/rc.d/network_ipv6 start can miss neighb o conf/153123 rc [rc] [patch] add gsched rc file to automatically inser o conf/152784 rc services provide himself instead providing class of se o conf/151063 rc [rc.subr] Verify network link and packet flow before s o conf/150752 rc [rc.subr] [patch] be not needed to eval $_pidcmd on re o conf/150474 rc [patch] rc.d/accounting: Add ability to set location o o conf/149867 rc [PATCH] rc.d script to manage multiple FIBS (kern opti o conf/149831 rc [PATCH] add support to /etc/rc.d/jail for delegating Z o conf/148656 rc rc.firewall(8): {oip} and {iip} variables in rc.firewa o conf/147685 rc [rc.d] [patch] new feature for /etc/rc.d/fsck o conf/147444 rc [rc.d] [patch] /etc/rc.d/zfs stop not called on reboot o conf/146053 rc [patch] [request] shutdown of jails breaks inter-jail o conf/145445 rc [rc.d] error in /etc/rc.d/jail (bad logic) o conf/145440 rc [rc.d] [patch] add multiple fib support (setfib) in /e o conf/145399 rc [patch] rc.d scripts are unable to start/stop programs o conf/145344 rc [patch] Fix kitchen sink approach for rc.d scripts ins o conf/145009 rc [patch] rc.subr(8): rc.conf should allow mac label con o conf/144213 rc [rc.d] [patch] Disappearing zvols on reboot o conf/143637 rc [patch] ntpdate(8) support for ntp-servers supplied by o conf/143085 rc [patch] ftp-proxy(8) rc(8) with multiple instances o conf/143084 rc [jail] [patch]: fix rc.d/jail creating stray softlinks o conf/142973 rc [jail] [patch] Strange counter init value in jail rc o conf/142434 rc [patch] Add cpuset(1) support to rc.subr(8) o conf/142304 rc rc.conf(5): mdconfig and mdconfig2 rc.d scripts lack e o conf/141909 rc rc.subr(8): [patch] add rc.conf.d support to /usr/loca o conf/141907 rc [rc.d] Bug if mtu (maybe others?) is set as first argu o conf/141678 rc [patch] A minor enhancement to how /etc/rc.d/jail dete o conf/141275 rc [request] dhclient(8) rc script should print something o conf/140440 rc [patch] allow local command files in rc.{suspend,resum o conf/140261 rc [patch] Improve flexibility of mdconfig2 startup scrip o conf/138208 rc [rc.d] [patch] Making rc.firewall (workstation) IPv6 a o conf/137629 rc [rc.d] background_dhclient rc.conf option causing doub o conf/137470 rc [PATCH] /etc/rc.d/mdconfig2 : prioritize cli parameter o conf/137271 rc [rc.d] Cannot update /etc/host.conf when root filesyst o conf/136875 rc [request] _flags appending o conf/136624 rc [rc.d] sysctl variables for ipnat are not applied on b o conf/135338 rc [rc.d] pf startup order seems broken [regression] o conf/134918 rc [patch] rc.subr fails to detect perl daemons o conf/134660 rc [patch] rc-script for initializing ng_netflow+ng_ipfw o conf/134333 rc PPP configuration problem in the rc.d scripts in combi o conf/134006 rc [patch] Unload console screensaver kernel modules if s o conf/133987 rc [rc.d] defaultroute broken with DHCP in some cases o conf/133890 rc [patch] sshd(8): add multiple profiles to the rc.d scr o conf/132483 rc rc.subr(8) [patch] setfib(1) support for rc.subr o conf/132476 rc [rc.d] [patch] add support setfib(1) in rc.d/routing o conf/128299 rc [patch] /etc/rc.d/geli does not mount partitions using o bin/126562 rc rcorder(8) fails to run unrelated startup scripts when o conf/126392 rc [patch] rc.conf ifconfig_xx keywords cannot be escaped p bin/126324 rc [patch] rc.d/tmp: Prevent mounting /tmp in second tim o conf/124747 rc [patch] savecore can't create dump from encrypted swap o conf/124248 rc [jail] [patch] add support for nice value for rc.d/jai o conf/123734 rc [patch] Chipset VIA CX700 requires extra initializatio o conf/123222 rc [patch] Add rtprio(1)/idprio(1) support to rc.subr(8). o conf/122968 rc [rc.d] /etc/rc.d/addswap: md swapfile multiplication a o conf/122477 rc [patch] /etc/rc.d/mdconfig and mdconfig2 are ignoring o conf/122170 rc [patch] [request] New feature: notify admin via page o o kern/121566 rc [nfs] [request] [patch] ethernet iface should be broug o conf/120431 rc [patch] devfs.rules are not initialized under certain o conf/120406 rc [devd] [patch] Handle newly attached pcm devices (eg. o conf/119874 rc [patch] "/etc/rc.d/pf reload" fails if there are macro o conf/119076 rc [patch] [rc.d] /etc/rc.d/netif tries to remove alias a o bin/118325 rc [patch] [request] new periodic script to test statuses o conf/118255 rc savecore never finding kernel core dumps (rcorder prob o conf/117935 rc [patch] ppp fails to start at boot because of missing o conf/113915 rc [patch] ndis wireless driver fails to associate when i o conf/109980 rc /etc/rc.d/netif restart doesn't destroy cloned_interfa o conf/109562 rc [rc.d] [patch] [request] Make rc.d/devfs usable from c o conf/108589 rc rtsol(8) fails due to default ipfw rules o conf/106009 rc [ppp] [patch] [request] Fix pppoed startup script to p o conf/105689 rc [ppp] [request] syslogd starts too late at boot o conf/105568 rc [patch] [request] Add more flexibility to rc.conf, to o conf/105145 rc [ppp] [patch] [request] add redial function to rc.d/pp o conf/104549 rc [patch] rc.d/nfsd needs special _find_processes functi o conf/102700 rc [geli] [patch] Add encrypted /tmp support to GELI/GBDE o conf/99721 rc [patch] /etc/rc.initdiskless problem copy dotfile in s o conf/99444 rc [patch] Enhancement: rc.subr could easily support star o conf/96343 rc [patch] rc.d order change to start inet6 before pf o conf/93815 rc [patch] Adds in the ability to save ipfw rules to rc.d o conf/92523 rc [patch] allow rc scripts to kill process after a timeo o conf/89870 rc [patch] [request] make netif verbose rc.conf toggle o conf/89061 rc [patch] IPv6 6to4 auto-configuration enhancement o conf/88913 rc [patch] wrapper support for rc.subr o conf/85819 rc [patch] script allowing multiuser mode in spite of fsc o kern/81006 rc ipnat not working with tunnel interfaces on startup o conf/77663 rc Suggestion: add /etc/rc.d/addnetswap after addcritremo o conf/73677 rc [patch] add support for powernow states to power_profi o conf/58939 rc [patch] dumb little hack for /etc/rc.firewall{,6} o conf/56934 rc [patch] rc.firewall rules for natd expect an interface o conf/45226 rc [patch] Fix for rc.network, ppp-user annoyance o conf/44170 rc [patch] Add ability to run multiple pppoed(8) on start 92 problems total. From owner-freebsd-rc@FreeBSD.ORG Wed Feb 16 16:44:54 2011 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 480531065672; Wed, 16 Feb 2011 16:44:54 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1temp.jnielsen.net (ns1temp.jnielsen.net [69.55.230.42]) by mx1.freebsd.org (Postfix) with ESMTP id 0FF918FC08; Wed, 16 Feb 2011 16:44:53 +0000 (UTC) Received: from jnielsen.socialserve.com ([12.249.176.26]) (authenticated bits=0) by ns1temp.jnielsen.net (8.14.3/8.14.3) with ESMTP id p1GGKYcu055519 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Wed, 16 Feb 2011 11:20:34 -0500 (EST) (envelope-from lists@jnielsen.net) From: John Nielsen Content-Type: multipart/mixed; boundary=Apple-Mail-7--409034666 Date: Wed, 16 Feb 2011 11:20:28 -0500 To: freebsd-rc@freebsd.org Message-Id: Mime-Version: 1.0 (Apple Message framework v1082) X-Mailer: Apple Mail (2.1082) X-DCC-STAT_FI_X86_64_VIRTUAL-Metrics: ns1temp.jnielsen.net; whitelist X-Virus-Scanned: clamav-milter 0.96.5 at ns1temp.jnielsen.net X-Virus-Status: Clean Subject: [patch] rc support for multiple hostapd instances X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2011 16:44:54 -0000 --Apple-Mail-7--409034666 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii I've been tinkering with various wireless setups recently, one of which = required running WPA on two hostap virtual access points. I was = surprised to see that support for this is not already present in our rc = infrastructure. Running multiple instances of hostapd works just fine, = so I hacked together the following. It add support for a new rc variable = hostapd_conf_files, which defaults to only "/etc/hostapd.conf" but may = contain a list of files. An instance of hostapd is started for each file = in the list. For testing I have used hostapd_conf_files=3D"/etc/hostapd.conf /etc/hostapd2.conf" in /etc/rc.conf. Any suggestions or concerns? I would love to see this or something like = it committed. I have not yet written a patch for rc.conf.5 but would be = happy to. JN --Apple-Mail-7--409034666 Content-Disposition: attachment; filename=multi-hostap.patch Content-Type: application/octet-stream; name="multi-hostap.patch" Content-Transfer-Encoding: 7bit --- defaults/rc.conf.orig 2011-02-16 10:27:51.000000000 -0500 +++ defaults/rc.conf 2011-02-16 10:30:13.000000000 -0500 @@ -256,7 +256,8 @@ # profile3 uses default ppp_mode and ppp_nat ### Network daemon (miscellaneous) ### -hostapd_enable="NO" # Run hostap daemon. +hostapd_enable="NO" # Run hostap daemon(s). +hostapd_conf_files="/etc/hostapd.conf" # List of config files to start a daemon with. syslogd_enable="YES" # Run syslog daemon (or NO). syslogd_program="/usr/sbin/syslogd" # path to syslogd, if you want a different one. syslogd_flags="-s" # Flags to syslogd (if enabled). --- rc.d.norun/hostapd 2011-01-04 20:19:40.000000000 -0500 +++ rc.d/hostapd 2011-02-16 10:24:28.000000000 -0500 @@ -12,14 +12,17 @@ name="hostapd" command="/usr/sbin/${name}" rcvar=`set_rcvar` +load_rc_config ${name} -conf_file="/etc/${name}.conf" -pidfile="/var/run/${name}.pid" - -command_args="-P ${pidfile} -B ${conf_file}" -required_files="${conf_file}" required_modules="wlan_xauth wlan_wep wlan_tkip wlan_ccmp" extra_commands="reload" -load_rc_config ${name} -run_rc_command "$1" +for conf_file in ${hostapd_conf_files}; do + #conf_file="/etc/${name}.conf" + pidfile="/var/run/hostapd`echo ${conf_file} | sed -e "s/\//_/g"`.pid" + + command_args="-P ${pidfile} -B ${conf_file}" + required_files="${conf_file}" + + run_rc_command "$1" +done --Apple-Mail-7--409034666 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii --Apple-Mail-7--409034666-- From owner-freebsd-rc@FreeBSD.ORG Sat Feb 19 07:23:26 2011 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 266EF106566B for ; Sat, 19 Feb 2011 07:23:26 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id B43468FC08 for ; Sat, 19 Feb 2011 07:23:25 +0000 (UTC) Received: by wyb32 with SMTP id 32so267280wyb.13 for ; Fri, 18 Feb 2011 23:23:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=Dcr7n58+QmSkQipzx+E91VbiNUqjt1BjXukfNfNlKVU=; b=N7tMMrcjxeyCry9y6uOe8+useLGiStc0Sw2MtFaZ+cnGD2B5vb/KEDy74c57kPiqcu b64tc37hKGZaSc0Vx+NjUxpmzwgkam6woFrrlktYZJRYPShjom033uG0mIBjp+rtCOsw yCY9gJq/HPZe6+Vi/5y28a1Nzf2ttrB0o0330= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=vmoeeSDMo+b1hAGm2XpKE0a8DdqlUDh3cmxkDm7H+xnIB2AqQBnb1Ni1PO1dncRHnr oamuUqgKo6C/BC7btKN2BnArZnBQ6Y51OFKOPzP5kRmRS/GQIt07SyIiYFhPa5ZFWPw5 b5l6WdGGhDJsH8trQt3qJNWydXpOO0647CBjE= MIME-Version: 1.0 Received: by 10.216.241.138 with SMTP id g10mr270282wer.27.1298098750743; Fri, 18 Feb 2011 22:59:10 -0800 (PST) Received: by 10.216.71.200 with HTTP; Fri, 18 Feb 2011 22:59:10 -0800 (PST) Date: Fri, 18 Feb 2011 22:59:10 -0800 Message-ID: From: Garrett Cooper To: "freebsd-rc@FreeBSD.org" Content-Type: text/plain; charset=ISO-8859-1 Subject: natd doesn't start automatically on 8.2 (8.1 -> 8.2 regression) X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Feb 2011 07:23:26 -0000 Hi rc folks, After upgrading to 8.2 on my little gateway/router box, I've noticed that natd no longer starts automatically when `KEYWORD: nostart' is specified in the header of the script. Oddly enough, this doesn't appear to be an issue on either 8.1 -- even though the code in the rc-scripts (etc/rc, etc/rc.d/natd, sbin/rcorder/...) hasn't changed between the 8.1 and 8.2 release cycles -- and it doesn't occur on my FreeBSD CURRENT box: # uname -a FreeBSD toaster.local 8.2-RELEASE FreeBSD 8.2-RELEASE #0 r218744: Fri Feb 18 19:26:10 PST 2011 gcooper@toaster.local:/usr/obj/usr/src/sys/BREADBOX-modules i386 # rcorder /etc/rc.d/* | grep natd /etc/rc.d/natd # rcorder -s nostart /etc/rc.d/* | grep natd # make KERNCONF=BREADBOX-modules -VMODULES_OVERRIDE -f /etc/src.conf ipdivert ipfw libalias $ uname -a FreeBSD tameshi.cisco.com 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r218825M: Fri Feb 18 17:45:54 PST 2011 garrcoop@tameshi.cisco.com:/usr/obj/data/scratch/src/head/sys/TAMESHI_CURRENT amd64 $ rcorder /etc/rc.d/* | grep natd /etc/rc.d/natd $ rcorder -s nostart /etc/rc.d/* | grep natd $ make KERNCONF=TAMESHI_CURRENT -VMODULES_OVERRIDE -f /etc/src.conf aio bce bge em bridgestp if_bridge ipdivert ipfw ipfw_nat libalias i2c/smbus ipmi linprocfs linsysfs linux When I remove nostart in rc.d/natd on my 8.2 box, stuff works the way it should given the documentation in the handbook: http://www.freebsd.org/doc/handbook/network-natd.html . This behavior occurs either when I build the kernel with the ipfw stuff as modules or statically (it was a variance between my 8.2-RELEASE and CURRENT box). I haven't chased down the root-cause for this new behavior, but ideas are more than welcome. Thanks, -Garrett PS What's the purpose of the nostart category?