From owner-freebsd-stable@FreeBSD.ORG Fri May 13 11:27:45 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17E70106566B; Fri, 13 May 2011 11:27:44 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 5FC528FC14; Fri, 13 May 2011 11:27:44 +0000 (UTC) Received: by iyj12 with SMTP id 12so2808957iyj.13 for ; Fri, 13 May 2011 04:27:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:x-openpgp-key-id:x-openpgp-key-fingerprint :x-openpgp-key-url; bh=7/LGFur01hlcyl97RqTGdE4WDo0qRTosBXigD5mkL1w=; b=T+xFJUKvCQxQSdxkmjO/YGgGR+yWgwFI684w2IUj9en3smhSFopHLg+kiOdyxoRYcj PF5V9BlnMp8Dsf4deSrajaGKLtXqqhmV0yco1VA7tP6iNBt3M2KQ97k0lkkG+yawnRRu QT249b/GZ6opZ+kj1WwHjMZf/JIaX2rL4QyJs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:x-openpgp-key-id :x-openpgp-key-fingerprint:x-openpgp-key-url; b=R7wlpZByJehQ/de+eZ2PbmUEhslBSldC7keU1QESksIW8leo0zQaoANLGUDoo9OdhJ Yk+nS1OBkYu3pl/IXXiGgmNvlfYz76q6ARpGREU/UIsIwWAi3JGCTef9Z40bGzggedXw EMUxUoYtOhCZdL7QeqT0yNblLwzWl0W+A/NP8= Received: by 10.42.157.67 with SMTP id c3mr1528648icx.95.1305286063703; Fri, 13 May 2011 04:27:43 -0700 (PDT) Received: from DataIX.net (adsl-99-190-81-196.dsl.klmzmi.sbcglobal.net [99.190.81.196]) by mx.google.com with ESMTPS id t1sm931523ibm.38.2011.05.13.04.27.41 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 13 May 2011 04:27:42 -0700 (PDT) Sender: "J. Hellenthal" Received: from DataIX.net (localhost [127.0.0.1]) by DataIX.net (8.14.4/8.14.4) with ESMTP id p4DBRd9i004608 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 13 May 2011 07:27:39 -0400 (EDT) (envelope-from jhell@DataIX.net) Received: (from jhell@localhost) by DataIX.net (8.14.4/8.14.4/Submit) id p4DBRcPA004607; Fri, 13 May 2011 07:27:38 -0400 (EDT) (envelope-from jhell@DataIX.net) Date: Fri, 13 May 2011 07:27:38 -0400 From: Jason Hellenthal To: =?iso-8859-1?Q?Micka=EBl?= Maillot Message-ID: <20110513112738.GA2720@DataIX.net> References: <20110508191336.GC3527@DataIX.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pWyiEgJYm5f9v55/" Content-Disposition: inline In-Reply-To: X-OpenPGP-Key-Id: 0x89D8547E X-OpenPGP-Key-Fingerprint: 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E X-OpenPGP-Key-URL: http://bit.ly/0x89D8547E Cc: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org, freebsd-rc@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-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2011 11:27:45 -0000 --pWyiEgJYm5f9v55/ Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Micka=EBl, On Fri, May 13, 2011 at 12:12:05PM +0200, Micka=EBl Maillot wrote: > Hi, >=20 > 2011/5/8 Jason Hellenthal >=20 > > > > 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 > > >=20 > 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 >=20 The one you downloaded here used to be this one: http://patches.jhell.googlecode.com/hg/rc.subr_modular_conf.patch?r=3Dbf83c= 231337642f925d6c732ba8c8b070480631e But since alot of slack was coming back on the use of the -x bit it was removed. >=20 > > > > > > 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=3D > > 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. > > >=20 > i resolved that by making multiple files source the same conf file. >=20 > 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. --=20 Regards, (jhell) Jason Hellenthal --pWyiEgJYm5f9v55/ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) Comment: http://bit.ly/0x89D8547E iQEcBAEBAgAGBQJNzRWpAAoJEJBXh4mJ2FR+dbEH/jCyY0qY5Mh2lke9bxeGrRPy qul0Bjy3RhSuREYNZnW3VgOxpzEatV6S1sz3USYutHIN0V6mOxRHxnBRe9D1Ri2k FCRXh9ZcIlRuAKgQeDit+RscwV9PIH8MFNuox4T1eRunNa/lOKb7jZqJkbe7mK+v J6egWqZL/QwEHt2mC1MrhnGpfWpGZYgRA+xTka5StRVgi16doAg7Bu15ncrBvUI0 UXc4VIuVO3Gl/cO59FRU4DxSp7MQ2wnIA96cRsJmnJC46k4EhyfKQWwBoPqUwUsi 3VKRtobNnrDMPHB1f8Oq/KNKPFokQhkD4qQKbJz56S3X3x9o+mlelOMQQtUQwWA= =Ztl4 -----END PGP SIGNATURE----- --pWyiEgJYm5f9v55/--