From owner-freebsd-rc@FreeBSD.ORG Mon Mar 29 11:07:03 2010 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 6769D1065704 for ; Mon, 29 Mar 2010 11:07:03 +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 54EE08FC24 for ; Mon, 29 Mar 2010 11:07:03 +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 o2TB73C1058096 for ; Mon, 29 Mar 2010 11:07:03 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o2TB72OL058094 for freebsd-rc@FreeBSD.org; Mon, 29 Mar 2010 11:07:02 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 29 Mar 2010 11:07:02 GMT Message-Id: <201003291107.o2TB72OL058094@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, 29 Mar 2010 11:07:03 -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/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] [patch] Making rc.firewall (workstation) IPv6 awa o conf/137629 rc [rc] background_dhclient rc.conf option causing double o conf/137470 rc [PATCH] /etc/rc.d/mdconfig2 : prioritize cli parameter 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/130414 rc [patch] rc services started with onestart are not stop o conf/128299 rc [patch] /etc/rc.d/geli does not mount partitions using o conf/127917 rc [patch] dumpon rejects on start with physmem>swap even 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/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 74 problems total. From owner-freebsd-rc@FreeBSD.ORG Mon Mar 29 16:16:45 2010 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 54BB1106566B; Mon, 29 Mar 2010 16:16:45 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 2590B8FC12; Mon, 29 Mar 2010 16:16:45 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id CA81546B8F; Mon, 29 Mar 2010 12:16:44 -0400 (EDT) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPA id 0F4908A021; Mon, 29 Mar 2010 12:16:44 -0400 (EDT) From: John Baldwin To: Doug Barton Date: Mon, 29 Mar 2010 12:03:18 -0400 User-Agent: KMail/1.12.1 (FreeBSD/7.3-CBSD-20100217; KDE/4.3.1; amd64; ; ) References: <201003261410.35830.jhb@freebsd.org> <4BAE67FA.6070609@FreeBSD.org> In-Reply-To: <4BAE67FA.6070609@FreeBSD.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201003291203.18304.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Mon, 29 Mar 2010 12:16:44 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.7 required=4.2 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: freebsd-rc@freebsd.org, Xin LI Subject: Re: mountd and reload 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, 29 Mar 2010 16:16:45 -0000 On Saturday 27 March 2010 4:18:02 pm Doug Barton wrote: > On 03/26/10 12:18, Xin LI wrote: > > On Fri, Mar 26, 2010 at 11:10 AM, John Baldwin wrote: > >> FYI, it would be nice if someone could fix it so that /etc/rc.d/mountd reload > >> works when nfs_server_enable="YES" is set in /etc/rc.conf but > >> mountd_enable="YES" is not explicitly set. > > > > How would you think about something like this (hackish, though... I > > think we should perhaps make a 'rcvars' list): > > I am opposed to it. We already have a mechanism for starting things that > don't have _enable set. > > OTOH I agree that there is a more general problem that our rc.d system > should be smarter about what dependent services need to be enabled for a > given service but that problem should be solved generally. One-off hacks > like this will create a lot of drama and confusion that I would really > prefer to avoid. Can we come up with some sort of solution please? Right now 'sh /etc/rc.d/mountd reload' is useless for the common case. -- John Baldwin From owner-freebsd-rc@FreeBSD.ORG Mon Mar 29 17:29:51 2010 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 ABC161065676 for ; Mon, 29 Mar 2010 17:29:51 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id 3BC258FC1E for ; Mon, 29 Mar 2010 17:29:51 +0000 (UTC) Received: (qmail 18101 invoked by uid 399); 29 Mar 2010 17:29:50 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 29 Mar 2010 17:29:50 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4BB0E38D.1010605@FreeBSD.org> Date: Mon, 29 Mar 2010 10:29:49 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.7) Gecko/20100218 Thunderbird/3.0.1 MIME-Version: 1.0 To: John Baldwin References: <201003261410.35830.jhb@freebsd.org> <4BAE67FA.6070609@FreeBSD.org> <201003291203.18304.jhb@freebsd.org> In-Reply-To: <201003291203.18304.jhb@freebsd.org> X-Enigmail-Version: 1.0.1 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-rc@freebsd.org, Xin LI Subject: Re: mountd and reload 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, 29 Mar 2010 17:29:51 -0000 On 03/29/10 09:03, John Baldwin wrote: > Can we come up with some sort of solution please? Right now 'sh > /etc/rc.d/mountd reload' is useless for the common case. The common case is to enable things in rc.conf that you want to start. The next most common case is to use onereload for one-offs. Did you try that as I suggested a few days ago? Doug -- ... and that's just a little bit of history repeating. -- Propellerheads Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/ From owner-freebsd-rc@FreeBSD.ORG Mon Mar 29 18:34:05 2010 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 907DB106564A; Mon, 29 Mar 2010 18:34:05 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 640398FC16; Mon, 29 Mar 2010 18:34:05 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 161A946B1A; Mon, 29 Mar 2010 14:34:05 -0400 (EDT) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPA id 65D998A01F; Mon, 29 Mar 2010 14:34:04 -0400 (EDT) From: John Baldwin To: Doug Barton Date: Mon, 29 Mar 2010 14:33:55 -0400 User-Agent: KMail/1.12.1 (FreeBSD/7.3-CBSD-20100217; KDE/4.3.1; amd64; ; ) References: <201003261410.35830.jhb@freebsd.org> <201003291203.18304.jhb@freebsd.org> <4BB0E38D.1010605@FreeBSD.org> In-Reply-To: <4BB0E38D.1010605@FreeBSD.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201003291433.55567.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Mon, 29 Mar 2010 14:34:04 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.7 required=4.2 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: freebsd-rc@freebsd.org, Xin LI Subject: Re: mountd and reload 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, 29 Mar 2010 18:34:05 -0000 On Monday 29 March 2010 1:29:49 pm Doug Barton wrote: > On 03/29/10 09:03, John Baldwin wrote: > > Can we come up with some sort of solution please? Right now 'sh > > /etc/rc.d/mountd reload' is useless for the common case. > > The common case is to enable things in rc.conf that you want to start. > The next most common case is to use onereload for one-offs. Did you try > that as I suggested a few days ago? We used forcereload, but that isn't really intuitive to a user, esp. given that mountd is implicitly started, but issuing a reload just silently fails. If the reload attempt whined, or if rc.d was smarter about implicit dependencies so that it would see that mountd was implicitly started and thus implicitly enable reload, either of those would be a vast improvement over the current system. -- John Baldwin From owner-freebsd-rc@FreeBSD.ORG Mon Mar 29 19:03:06 2010 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 4F807106564A; Mon, 29 Mar 2010 19:03:06 +0000 (UTC) (envelope-from delphij@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 14D478FC15; Mon, 29 Mar 2010 19:03:05 +0000 (UTC) Received: by pwj4 with SMTP id 4so8742659pwj.13 for ; Mon, 29 Mar 2010 12:03:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type; bh=wePiIvQkuwem7Rq6RQqcQR8XLdljm4H/xAcZ58pCVX4=; b=T7qQB+3HT4cGMyhqYn8OSAtEuNc9I+sNt0t6hhH02PRttLw5VLgaIrfexdklTjkHDW m1S2+4X8zWqJZNgIY21MhUkyxiw3oMVWPpH1BEBujy7l4o1w9yKnO7M5tQEJRwvGBkaq aUsZKx3VtqhDW+BxBLSd443j+bxMGAP/UvzLU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=YqPl3MgOJif2p6IVoauxwOgeepDvCxkUd+sViH3Rs4BAlcPVPkKocI+QQ8/mX3Lb6a +J0IPH6Z2XOcXYkwJ6e81ta7DpiZe/QTnSO4Nh4znThg3cn8shbbq9JiM67hT0w1E9zu 6jIdeBM1RLXmfrOsOzgPZQ/U7PNaVqRoxWFAI= MIME-Version: 1.0 Received: by 10.140.127.14 with HTTP; Mon, 29 Mar 2010 12:03:05 -0700 (PDT) In-Reply-To: <201003291433.55567.jhb@freebsd.org> References: <201003261410.35830.jhb@freebsd.org> <201003291203.18304.jhb@freebsd.org> <4BB0E38D.1010605@FreeBSD.org> <201003291433.55567.jhb@freebsd.org> Date: Mon, 29 Mar 2010 12:03:05 -0700 Received: by 10.141.101.14 with SMTP id d14mr1323178rvm.100.1269889385589; Mon, 29 Mar 2010 12:03:05 -0700 (PDT) Message-ID: From: Xin LI To: John Baldwin Content-Type: multipart/mixed; boundary=000e0cd13a92bb6ccf0482f5295a Cc: Doug Barton , freebsd-rc@freebsd.org Subject: Re: mountd and reload 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, 29 Mar 2010 19:03:06 -0000 --000e0cd13a92bb6ccf0482f5295a Content-Type: text/plain; charset=UTF-8 What about this one... (rc.subr in checkyesno would accept a list of variables and return 0 if any of them was set to "YES", and 1 if none of them was set or, when there is at least one "NO" and no "YES" set). Cheers, -- Xin LI http://www.delphij.net --000e0cd13a92bb6ccf0482f5295a Content-Type: application/octet-stream; name="rc.diff" Content-Disposition: attachment; filename="rc.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_g7dnaq5t0 SW5kZXg6IHJjLnN1YnIKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gcmMuc3VicgkocmV2aXNpb24gMjA1ODQ2KQor KysgcmMuc3Vicgkod29ya2luZyBjb3B5KQpAQCAtMTM4LDI0ICsxMzgsMjggQEAKICMKIGNoZWNr eWVzbm8oKQogewotCWV2YWwgX3ZhbHVlPVwkJHsxfQotCWRlYnVnICJjaGVja3llc25vOiAkMSBp cyBzZXQgdG8gJF92YWx1ZS4iCi0JY2FzZSAkX3ZhbHVlIGluCisJbG9jYWwgX25vIF92YXJuYW1l IF92YWx1ZQorCV9ubz1mYWxzZQorCWZvciBfdmFybmFtZSBpbiAkKjsgZG8KKwkJZXZhbCBfdmFs dWU9XCQke192YXJuYW1lfQorCQlkZWJ1ZyAiY2hlY2t5ZXNubzogJF92YXJuYW1lIGlzIHNldCB0 byAkX3ZhbHVlLiIKKwkJY2FzZSAkX3ZhbHVlIGluCiAKLQkJIwkieWVzIiwgInRydWUiLCAib24i LCBvciAiMSIKLQlbWXldW0VlXVtTc118W1R0XVtScl1bVXVdW0VlXXxbT29dW05uXXwxKQotCQly ZXR1cm4gMAotCQk7OworCQkJIwkieWVzIiwgInRydWUiLCAib24iLCBvciAiMSIKKwkJW1l5XVtF ZV1bU3NdfFtUdF1bUnJdW1V1XVtFZV18W09vXVtObl18MSkKKwkJCXJldHVybiAwCisJCQk7Owog Ci0JCSMJIm5vIiwgImZhbHNlIiwgIm9mZiIsIG9yICIwIgotCVtObl1bT29dfFtGZl1bQWFdW0xs XVtTc11bRWVdfFtPb11bRmZdW0ZmXXwwKQotCQlyZXR1cm4gMQotCQk7OwotCSopCi0JCXdhcm4g IlwkJHsxfSBpcyBub3Qgc2V0IHByb3Blcmx5IC0gc2VlICR7cmN2YXJfbWFucGFnZX0uIgotCQly ZXR1cm4gMQotCQk7OwotCWVzYWMKKwkJCSMJIm5vIiwgImZhbHNlIiwgIm9mZiIsIG9yICIwIgor CQlbTm5dW09vXXxbRmZdW0FhXVtMbF1bU3NdW0VlXXxbT29dW0ZmXVtGZl18MCkKKwkJCV9ubz10 cnVlCisJCQk7OworCQllc2FjCisJZG9uZQorCWlmIFsgIiR7X25vfSIgPSBmYWxzZSBdOyB0aGVu CisJCXdhcm4gIlwkJCogaXMgbm90IHNldCBwcm9wZXJseSAtIHNlZSAke3JjdmFyX21hbnBhZ2V9 LiIKKwlmaQorCXJldHVybiAxCiB9CiAKICMKSW5kZXg6IHJjLmQvbW91bnRkCj09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0K LS0tIHJjLmQvbW91bnRkCShyZXZpc2lvbiAyMDU4NDYpCisrKyByYy5kL21vdW50ZAkod29ya2lu ZyBjb3B5KQpAQCAtMTAsNyArMTAsNyBAQAogLiAvZXRjL3JjLnN1YnIKIAogbmFtZT0ibW91bnRk IgotcmN2YXI9YHNldF9yY3ZhcmAKK3JjdmFyPSJgc2V0X3JjdmFyYCBuZnNfc2VydmVyX2VuYWJs ZSBuZnNkX2VuYWJsZSIKIGNvbW1hbmQ9Ii91c3Ivc2Jpbi8ke25hbWV9IgogcGlkZmlsZT0iL3Zh ci9ydW4vJHtuYW1lfS5waWQiCiByZXF1aXJlZF9maWxlcz0iL2V0Yy9leHBvcnRzIgo= --000e0cd13a92bb6ccf0482f5295a-- From owner-freebsd-rc@FreeBSD.ORG Mon Mar 29 19:20:58 2010 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 AE94F1065670 for ; Mon, 29 Mar 2010 19:20:58 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [IPv6:2001:470:a803::1]) by mx1.freebsd.org (Postfix) with ESMTP id 575928FC34 for ; Mon, 29 Mar 2010 19:20:58 +0000 (UTC) Received: from mail.geekcn.org (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id B3405A5B04B; Tue, 30 Mar 2010 03:20:56 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by mail.geekcn.org (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with LMTP id bD+BEfk4o1rC; Tue, 30 Mar 2010 03:20:49 +0800 (CST) Received: from delta.delphij.net (drawbridge.ixsystems.com [206.40.55.65]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id 236D2A5AC5F; Tue, 30 Mar 2010 03:20:47 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:subject:references:in-reply-to:x-enigmail-version:openpgp: content-type:content-transfer-encoding; b=q18aI+J7vnkWXSL2FWs2snWMITWSSzm9VNuoTy4sOJLsdrgoN+8bKJKcsOWkDvHk3 L2FA2yJIalTJcrfwYrPiw== Message-ID: <4BB0FD8C.6070000@delphij.net> Date: Mon, 29 Mar 2010 12:20:44 -0700 From: Xin LI Organization: The Geek China Organization User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.8) Gecko/20100304 Thunderbird/3.0.3 ThunderBrowse/3.2.8.1 MIME-Version: 1.0 To: freebsd-rc@freebsd.org References: <201003261410.35830.jhb@freebsd.org> <4BAE67FA.6070609@FreeBSD.org> In-Reply-To: <4BAE67FA.6070609@FreeBSD.org> X-Enigmail-Version: 1.0.1 OpenPGP: id=3FCA37C1; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: mountd and reload X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net 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, 29 Mar 2010 19:20:58 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2010/03/27 13:18, Doug Barton wrote: > On 03/26/10 12:18, Xin LI wrote: >> On Fri, Mar 26, 2010 at 11:10 AM, John Baldwin wrote: >>> FYI, it would be nice if someone could fix it so that /etc/rc.d/mountd reload >>> works when nfs_server_enable="YES" is set in /etc/rc.conf but >>> mountd_enable="YES" is not explicitly set. > >> How would you think about something like this (hackish, though... I >> think we should perhaps make a 'rcvars' list): > > I am opposed to it. We already have a mechanism for starting things that > don't have _enable set. > > OTOH I agree that there is a more general problem that our rc.d system > should be smarter about what dependent services need to be enabled for a > given service but that problem should be solved generally. One-off hacks > like this will create a lot of drama and confusion that I would really > prefer to avoid. I think what we really want is to explicitly say, e.g. nfsd_enable is considered the same as if mountd_enable set to "YES" regardless whether we got a "NO" from the default rc.conf. e.g. in the past we do: - in nfsd script: if enabled="YES" then forcestart mountd Now we do: - in nfsd script: start when nfsd_enable="YES" - in mountd script: start when either mountd_enable="YES" or nfsd_enabled="YES" And, make sure that these scripts are properly ordered when necessary. Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iQEcBAEBAgAGBQJLsP2MAAoJEATO+BI/yjfB4oIH/i3RSGWbKilSs4cvlFELVy8R eWE/6j2OOGzKLACC0kpoHx41AMNSiA9+4VN/P9QjSsLzsMBprXn/r057SrFr4eza WO4lbmfTYuuQlF4XP+UNQfaQ1t7LXsjlvqpilfd51CJUuxZgVVfuEx5UhG4kJviO HrgBo7yvhsRozU/7ncCyQhtCzA9bliJ44OzOf+5R0tYn43ochVnIDrL/e4qz19Jy f2W/lMVgU1HYdsAoKvVKPchPPNir/PVOeqKLdwgSM9rb8P53itFFgl4hh31etFxA wG4j9qG1meo5jjfLCpouOfVKgI4giweHQLDfqFt3rHw6HFs35l6qPcCMh1xPLok= =+eVS -----END PGP SIGNATURE----- From owner-freebsd-rc@FreeBSD.ORG Thu Apr 1 00:47:34 2010 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 2AEB2106566C; Thu, 1 Apr 2010 00:47:34 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [IPv6:2001:470:a803::1]) by mx1.freebsd.org (Postfix) with ESMTP id C50098FC12; Thu, 1 Apr 2010 00:47:33 +0000 (UTC) Received: from mail.geekcn.org (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id B9644A6806D; Thu, 1 Apr 2010 08:47:32 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by mail.geekcn.org (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with LMTP id KOufyNS+rqha; Thu, 1 Apr 2010 08:47:27 +0800 (CST) Received: from delta.delphij.net (drawbridge.ixsystems.com [206.40.55.65]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id 5C3F2A68065; Thu, 1 Apr 2010 08:47:26 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=BNyD7VK2dX7fHsxPFoPfMfjD4AUizxn1jWkjpeBrPZ7v/64jfhZ9FuHzS75rMoYN+ k9qwvXlIAlkuiVsoWil2Q== Message-ID: <4BB3ED1A.9000905@delphij.net> Date: Wed, 31 Mar 2010 17:47:22 -0700 From: Xin LI Organization: The Geek China Organization User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.8) Gecko/20100304 Thunderbird/3.0.3 ThunderBrowse/3.2.8.1 MIME-Version: 1.0 To: Xin LI References: <201003261410.35830.jhb@freebsd.org> <201003291203.18304.jhb@freebsd.org> <4BB0E38D.1010605@FreeBSD.org> <201003291433.55567.jhb@freebsd.org> In-Reply-To: X-Enigmail-Version: 1.0.1 OpenPGP: id=3FCA37C1; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Doug Barton , freebsd-rc@FreeBSD.ORG, John Baldwin Subject: Re: mountd and reload X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net 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: Thu, 01 Apr 2010 00:47:34 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2010/03/29 12:03, Xin LI wrote: > What about this one... > > (rc.subr in checkyesno would accept a list of variables and return 0 > if any of them was set to "YES", and 1 if none of them was set or, > when there is at least one "NO" and no "YES" set). Doug: Ping? :) Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iQEcBAEBAgAGBQJLs+0aAAoJEATO+BI/yjfBIXMIALRmcmYLxbosyD8yehOCW+Tu KudGFDsKppIsBvvyFQKthaWS/qqmSJl6P5goxNDrZhBD0OL2SNKzsZRO/JmjXQMy a5lU3xFkhUEiywy1ofsfLJ1QZyH/ZfyITZH58LA9inbsLCSxGawSgQ36S+wxSlUg 9x8QSa26kdIqG40XszDxeiUR2/bFaFdltIHt5x5SKjOV3+uLZTixl1iyREO41lVy Cqxg0VhcOV6gAn+553yqGgalVm/oWX5uGS7b0FZ1YVlAuakZxTh+WExwvZaVhJWA IVN7m2t3ncsUcfmFezn60L29IF4SBza6CgjZ80z7Qoj57ZotITi4AQ6MqS6IZ7Y= =mXby -----END PGP SIGNATURE----- From owner-freebsd-rc@FreeBSD.ORG Sat Apr 3 07:42:12 2010 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 E4FD31065672 for ; Sat, 3 Apr 2010 07:42:12 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id 8A4F98FC15 for ; Sat, 3 Apr 2010 07:42:12 +0000 (UTC) Received: (qmail 1328 invoked by uid 399); 3 Apr 2010 07:42:11 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 3 Apr 2010 07:42:11 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4BB6F152.9020509@FreeBSD.org> Date: Sat, 03 Apr 2010 00:42:10 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.9) Gecko/20100330 Thunderbird/3.0.4 MIME-Version: 1.0 To: David Horn References: <4B945AA7.6070000@FreeBSD.org> <20100309.072719.200228546.hrs@allbsd.org> <25ff90d61003082037v3519995bx7e119e9d14143db4@mail.gmail.com> <20100309.135917.161082188.hrs@allbsd.org> <25ff90d61003110809s4cc775e9r2ff6ebee151be6f6@mail.gmail.com> <25ff90d61003112059r2648543bn812468893fc3b19@mail.gmail.com> In-Reply-To: <25ff90d61003112059r2648543bn812468893fc3b19@mail.gmail.com> X-Enigmail-Version: 1.0.1 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org, freebsd-rc@freebsd.org Subject: Re: Un-obsolete'ing ipv6_enable 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, 03 Apr 2010 07:42:13 -0000 Sorry it's taken me so long to get back to this, had a lot of other pressing issues. Short version, I think you're taking the wrong approach here. Longer version, I'm going to be posting to -current shortly to ask for opinions on what the defaults should be. My understanding from the last go-round about this topic was clear, but I'd like to confirm it. I have a new, more complete patch at http://people.freebsd.org/~dougb/v6-enable.diff that I'll be writing up for that post. I'd like to request that we all follow up on that post when it happens so that the conversation can all happen in the same location, and with a wider audience. More details below. On 03/11/10 20:59, David Horn wrote: > for brevity sake >>> dh> Question 2) Assuming that people do desire consistency with allowing >>> dh> for both a global, and a per-interface setting, do you agree with >>> dh> having a global default for DHCPv4 (dhcpv4_default_enable), and for >>> dh> IPv6 slaac/accept_rtadv (ipv6-slaac_default_enable), and the >>> dh> per-interface DHCPv4 (ifconfig_IF0="dhcp") aka a meta configuration >>> dh> variable, and a per-interface IPv6 slaac (ifconfig_IF0="slaac") aka a >>> dh> meta configuration variable. I'm not interested in dealing with v4 dhcp as part of this, I want to focus on getting v6 back to reasonable defaults. You should of course feel free to pursue your ideas about v4 dhcp separately. >>> I think the global configuration can be realized by setting something >>> like ifconfig_DEFAULT_="AUTO" instead of adding a new global >>> knobs. Like I said, I'm hesitant to deal with v4 issues in this context. I'm even more hesitant to deal with a global autoconf knob. The default v6 configuration is SLAAC, whereas in v4 there is not nearly as much unanimity. I actually look forward to a day when DHCPv6 is more common, and then I'd like to revisit this topic. > Historically (8.0-RELEASE and prior), there was a global rc.conf knob > for ipv6 (ipv6_enable, default="NO") that performed several functions: > > a) Enabled (or disabled) ipv6 link-local address for every interface > (auto_linklocal AND -ifdisabled) > b) Enabled (or disabled) ipv6 SLAAC by default for every interface by > setting the global net.inet6.ip6.accept_rtadv=1 sysctl > c) inherently specified utilization of a ipv6 address (AAAA) over an > ipv4 address (A) when both were available from a dns query when using > getaddrinfo() > d) Others I can not think of at the moment ? > > As well, there has always been a per-interface variable for IPv4 dhcp > (The pseudo-variable of "dhcp" on an ifconfig_IF rc.conf line), but no > global knob. > > Now, I propose two new global variables: ipv6_slaac_default_enable, > ipv4_dhcp_default_enable > and several new/updated per-interface pseudo variables: auto, noauto, > accept_rtadv, -accept_rtadv, slaac, noslaac, dhcp, nodhcp I think (others may disagree) that this is too much complexity. I do however agree with the idea of decoupling some of the functions that ipv6_enable did previously. My patch doesn't change the current semantic of ipv6_prefer, and adds the ability to do specify SLAAC, direct configuration, and a NORTADV knob on a per-ipv6-interface basis. > Changelist: > 4) Misc changes/fixes: > Changed ifconfig_up() to use ipv6_autoconfif() rather than > re-checking some values for itself, I did my own pass on ifconfig_up(), but it ended up looking similar to yours in some ways. In particular, I agree with this change and have adopted it. > and now allow > ifconfig_em0_ipv6="inet6 2001:db8::1" to work with AND without > user-specified "inet6", as it used to be implied, and most recently > was required, and is now optional. ifconfig_IF for v4 has always required "inet
" I don't see any reason to NOT require inet6 for ifconfig_IF_ipv6. Making things easier for users is a good thing, but sometimes too many options make things worse, not better. :) > Change ipv6_network_interfaces to default to "AUTO" just like > network_interfaces (consistency is the theme) This I agree with (on both counts), as I've stated previously. More to come on -current. Doug -- ... and that's just a little bit of history repeating. -- Propellerheads Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/