From owner-freebsd-current@FreeBSD.ORG Fri May 2 07:08:23 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E1AF637B401 for ; Fri, 2 May 2003 07:08:23 -0700 (PDT) Received: from ion.gank.org (ion.gank.org [198.78.66.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BAF143F85 for ; Fri, 2 May 2003 07:08:23 -0700 (PDT) (envelope-from craig@xfoil.gank.org) Received: from localhost (ion.gank.org [198.78.66.164]) by ion.gank.org (GankMail) with ESMTP id 103532CFC7; Fri, 2 May 2003 09:08:23 -0500 (CDT) Received: from ion.gank.org ([198.78.66.164]) by localhost (ion.gank.org [198.78.66.164]) (amavisd-new, port 10024) with LMTP id 22410-03-2; Fri, 2 May 2003 09:08:22 -0500 (CDT) Received: from owen1492.uf.corelab.com (pix.corelab.com [12.45.169.2]) by ion.gank.org (GankMail) with ESMTP id 162422BF09; Fri, 2 May 2003 09:08:22 -0500 (CDT) From: Craig Boston To: "Daniel C. Sobral" In-Reply-To: <3EB26F3C.9020109@tcoip.com.br> References: <00cf01c30fb7$36745010$6601a8c0@VAIO650> <3EB26F3C.9020109@tcoip.com.br> Content-Type: text/plain Organization: Message-Id: <1051884477.26774.18.camel@owen1492.uf.corelab.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4 Date: 02 May 2003 09:07:58 -0500 Content-Transfer-Encoding: 7bit cc: Lucky Green cc: freebsd-current@freebsd.org cc: mark@grondar.org Subject: Re: save-entropy "route: not found" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 May 2003 14:08:24 -0000 On Fri, 2003-05-02 at 08:14, Daniel C. Sobral wrote: > But it only breaks down when someone explains that rc.conf is > actually a configuration file, and that the configuration is read > by the artifact of sourcing it is a mere implementation detail. I don't know how many other people abuse the fact that rc.conf is sourced, but I do by using code to the effect of: for _conf in /etc/rc.conf.d/*.conf; do [ -r ${_conf} ] && . ${_conf} done And /usr/local/etc/rc.conf.d is a symlink to /etc/rc.conf.d. This seems relatively harmless and makes my life much easier. I have a lot of custom ports for configuring my servers that drop files in etc/rc.conf.d. It's a lot simpler for upgrades to simply delete its config file and replace it with a new one than to try to do fancy ed scripting on rc.conf and possibly screw up other things... Then again I also do that for make.conf with somewhat more hackish code ;) __CONFFILES != echo /etc/make.conf.d/*.conf .for __conf in ${__CONFFILES} .if exists(${__conf}) .include "${__conf}" .endif .endfor Craig