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?