From owner-freebsd-hackers@FreeBSD.ORG Fri May 13 10:34:22 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 880CC106566B; Fri, 13 May 2011 10:34:22 +0000 (UTC) (envelope-from mickael.maillot@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 03A5B8FC19; Fri, 13 May 2011 10:34:21 +0000 (UTC) Received: by qwc9 with SMTP id 9so1618034qwc.13 for ; Fri, 13 May 2011 03:34:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=4RrG6JR8DyOl1hB5I1Tk17zLteYgUvUDLkmCk1xRRyc=; b=hAEUZcRBicWDn5S+v+RSZQTgkXI4z3i5NCrIyVrqVGuu0PrF5GTDPZ8vohn9BxBRWN qdrBT9eeWZASBnSzq9cg3fIU1VUx2S0rdWzAGY60HxzyUynr/P5sJclvA3mcYkGSFnlX OKk1YdrPE/IJPUKQYkFy2fIXab/ThRqD3dhTM= 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=IhE/A+bzy0kCid8+JOmh5i6rXmitNwOZTCBjQrFFYcDAqXDe3GPJ6ICdWrPvpsvEst 0+P1zIoueGFIGH4mrL8/ek2oSigih4xTg1I2eNwfR9Ngfnq92PM6LO4B5e39T2FhqeBD 3DakFBV6wIuXq+OGt6YIp1WKdOLH6ZmtvyPhU= MIME-Version: 1.0 Received: by 10.229.127.81 with SMTP id f17mr1009062qcs.138.1305281525100; Fri, 13 May 2011 03:12:05 -0700 (PDT) Received: by 10.229.217.69 with HTTP; Fri, 13 May 2011 03:12:05 -0700 (PDT) In-Reply-To: <20110508191336.GC3527@DataIX.net> References: <20110508191336.GC3527@DataIX.net> Date: Fri, 13 May 2011 12:12:05 +0200 Message-ID: From: =?ISO-8859-1?Q?Micka=EBl_Maillot?= To: freebsd-rc@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org, freebsd-stable@freebsd.org Subject: Re: [RFC][Change-Request] Create usefulness in rc.subr etc/rc.conf.d/*.conf namespace. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2011 10:34:22 -0000 Hi, 2011/5/8 Jason Hellenthal > > List, - Please reply-to freebsd-rc@freebsd.org > > What does it do ?: As stated above, current functionality is undisturbed > while allowing the user to create config's by any name they so desire as > long as it has an extension of ".conf", also introducing the ability to > turn a configuration file off by using chmod(1). You can turn nfsc1.conf > off/on by simply chmod [-/+]x etc/rc.conf.d/nfs1.conf > seams not to be included in your patch, unless you change the line (or i'm wrong): if [ -f "$_modular_conf" ]; then by if [ -x "$_modular_conf" ]; then > > > Why ? Simple. How many times have you been bitten by disabling something > in the rc.conf file and left to discover what you just disabled was also > used by another daemon but that daemon is now not starting ? This is a way > to virtualize your configuration allowing you to add multiple _enable= > lines to different configurations for different roles. For instance > rpcbind is used by both samba and nfs*. With this you can add > rpcbind_enable to both a configuration for samba and nfs and when you > disable one service you know that you have not disabled a dependent for > another. > i resolved that by making multiple files source the same conf file. today my biggest problem is bad rc.d script like apache22, postfix, clamd or haproxy who load_rc_config and after overwrite extra_commands variable. this prevent me to add extra commands from a /etc/rc.conf.d/$name file.