From owner-freebsd-rc@FreeBSD.ORG Mon Jun 20 08:47:44 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 B520B1065673 for ; Mon, 20 Jun 2011 08:47:44 +0000 (UTC) (envelope-from stefan.midjich@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 7DF1A8FC08 for ; Mon, 20 Jun 2011 08:47:44 +0000 (UTC) Received: by iyb11 with SMTP id 11so965369iyb.13 for ; Mon, 20 Jun 2011 01:47:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:reply-to:sender:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=6RNPgQpPKiWnLAzPjlef/orCbXroiJ3kZQllU+87tfc=; b=ic9mf51VvXalot9YfGyZpUX7tqw+LCkm2jicxlAssbyFK5bC2K/8zTSRfU50MT51QV BPQXt92pt9r0JAaCRMmqgyW0vamBRqVOwyu37oICFtY6OPaKhtM0CmhnNpZIzfTNRFUC TTZikKJbjxjBA11rSRPTqda4Z38B6SlGW8LvU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:sender:date:x-google-sender-auth:message-id :subject:from:to:content-type:content-transfer-encoding; b=RB76Aexo04DrGF6rPAkAuCv6QseUHy2d8VttQzGglZ8MPuhH2EuVQlY7Vl1zYEV6jY NZL9E6WqF3YwUYGcdPSEgg6mTejnr7y47VJ/wdQWtl5VM7qCNiz/XHjdrgXM8pcDwXR7 1neceyseu62vZNjElw7OI8QfxArpwbR+GUhk4= MIME-Version: 1.0 Received: by 10.42.159.66 with SMTP id k2mr6119958icx.344.1308558021745; Mon, 20 Jun 2011 01:20:21 -0700 (PDT) Sender: stefan.midjich@gmail.com Received: by 10.42.177.196 with HTTP; Mon, 20 Jun 2011 01:20:21 -0700 (PDT) Date: Mon, 20 Jun 2011 10:20:21 +0200 X-Google-Sender-Auth: s-Z9jSLmWrXoZ9lJCQX6JhdR-KM Message-ID: From: Stefan Midjich To: freebsd-rc@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Status of /etc/rc.conf.d/servicename feature in rc.subr X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: swehack@gmail.com 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, 20 Jun 2011 08:47:44 -0000 I noticed in /etc/rc.subr that the function load_rc_config sources /etc/rc.conf.d/${_name}. This is however undocumented, NetBSD mentions this feature in rc.conf(5) but FreeBSD does not. I have two questions, is this a new undocumented feature, or an old one being phased out? I'm hoping it's a new because I really want this feature. Second question, how do I use it? I've tried to track the ${_name} variable but I can't find anyone calling the parent function load_rc_config_var() where the name variable is set from its first argument. I've done some trial and error by creating files called /etc/rc.conf.d/{ifconfig,ifconfig_em0,ifconfig_em0_alias} to try and add an alias just to see if it works. Negative results though as no changes are made. --=20 Med v=E4nliga h=E4lsningar / With kind regards Stefan Midjich http://swehack.se From owner-freebsd-rc@FreeBSD.ORG Mon Jun 20 09:08:24 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 ECE7C1065673 for ; Mon, 20 Jun 2011 09:08:24 +0000 (UTC) (envelope-from stefan.midjich@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id B0C608FC1B for ; Mon, 20 Jun 2011 09:08:24 +0000 (UTC) Received: by iwr19 with SMTP id 19so3913404iwr.13 for ; Mon, 20 Jun 2011 02:08:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:reply-to:sender:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=vBRZ5WFmK4j1dR3mOV6Z8WBmOEYzxCWWLeF7SawhrSA=; b=tydnNUySYScVI4uoG3kZJ6IoZtC7+A59F1csC5klrlC9/IGUaGz/sypGRjla5sTwjh 3/VTWhHfJLBF5taWCfMJgy/OKoQZihnagXSdHravEFIzvNDK2DKkrLptZbYcpQAuiHLT RYgcu+t2LLOVsQgX66uhdL1UqdL78CA+8a0ZE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=elKJFwwvN48bH6nm10I4mlAbbUD1Y/jYFE05O4FrDDy5VQWUkf0+HGy6+EXXvIvN0z jeJVlTuL+r53HAMVM9OsfqpSXy+bguU49Jn20MXV2PutXO4KRDA0uGFpNaBJTiHyqTkO nNFClUUDBhgoY0HBfyCTuBxu3c2J17XYE9X18= MIME-Version: 1.0 Received: by 10.42.220.202 with SMTP id hz10mr6082224icb.76.1308560903610; Mon, 20 Jun 2011 02:08:23 -0700 (PDT) Sender: stefan.midjich@gmail.com Received: by 10.42.177.196 with HTTP; Mon, 20 Jun 2011 02:08:23 -0700 (PDT) In-Reply-To: <8373928E-23AF-41D1-83BA-34324C38BB02@exonetric.com> References: <8373928E-23AF-41D1-83BA-34324C38BB02@exonetric.com> Date: Mon, 20 Jun 2011 11:08:23 +0200 X-Google-Sender-Auth: i31N74TRkAlWsv-7JOBA0mvhBQM Message-ID: From: Stefan Midjich To: Mark Blackman Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-rc@freebsd.org Subject: Re: Status of /etc/rc.conf.d/servicename feature in rc.subr X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: swehack@gmail.com 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, 20 Jun 2011 09:08:25 -0000 Shortly after I posted my e-mail I was talking about this with a co-worker and realized that I'm using the wrong servicename in rc.conf.d. Checking the name variable in /etc/rc.d/netif made it all much more clear. And yes I would support the further development of this feature because I plan on using it in deployment of FreeBSD nodes. 2011/6/20 Mark Blackman : > On 20 Jun 2011, at 09:20, Stefan Midjich wrote: > >> I noticed in /etc/rc.subr that the function load_rc_config sources >> /etc/rc.conf.d/${_name}. This is however undocumented, NetBSD mentions >> this feature in rc.conf(5) but FreeBSD does not. >> >> I have two questions, is this a new undocumented feature, or an old >> one being phased out? I'm hoping it's a new because I really want this >> feature. >> >> Second question, how do I use it? I've tried to track the ${_name} >> variable but I can't find anyone calling the parent function >> load_rc_config_var() where the name variable is set from its first >> argument. > > I've added a file called 'jail' there =A0and /etc/rc.d/jail will then > pick up configuration data from /etc/rc.conf.d/jail. > > I think it's quite a useful feature and would support it's > continued existence. However I wonder who else might be interested > in a better referencing method more like a perl hash or YAML files > for the configuration data. > > There's a clear nesting behaviour there built from shell variable > names that I find a little bit overextended. > > - Mark > --=20 Med v=E4nliga h=E4lsningar / With kind regards Stefan Midjich http://swehack.se From owner-freebsd-rc@FreeBSD.ORG Mon Jun 20 09:15:06 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 EBB0D106566B for ; Mon, 20 Jun 2011 09:15:05 +0000 (UTC) (envelope-from stefan.midjich@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id A9FC68FC13 for ; Mon, 20 Jun 2011 09:15:05 +0000 (UTC) Received: by iwr19 with SMTP id 19so3919404iwr.13 for ; Mon, 20 Jun 2011 02:15:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:reply-to:sender:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=/e1WNcUsCJ2C6N+R8ONLqjjO55mjKJ1j/Rq8ebOQnYU=; b=h7mhaUjQmPm41fibMYcZkPDtsp5xLMPcqHYGEjOWThbZVBKjZrAgWYRPLKAqmcY/kO ZQRaYfSjLzbrWzPBzJtpRiCm6xrDgN4osMBL9guj1SQe6XjO8TPUzhfIAuuDxHhX57ib uG0lSOIaf0EB12LATWy5jl3f4BVConQO97SHA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=ALWJmHkT2gqYwh4zQ+r3HzcvFwvvJZTtP44DiUL1JOyEIzB2E+F6XlfUkAd+lrPN0y yLW1A4csiUuUqO+aYCwuy3zr3E+5RJWyE0vMOaSMlwipCuGENDKAV3+fs6FtKAsTXmCC IALNiNeFzYw9CoxY8PTNcfVhsLE3zIV5CuuI8= MIME-Version: 1.0 Received: by 10.43.58.15 with SMTP id wi15mr6150703icb.411.1308561304881; Mon, 20 Jun 2011 02:15:04 -0700 (PDT) Sender: stefan.midjich@gmail.com Received: by 10.42.177.196 with HTTP; Mon, 20 Jun 2011 02:15:04 -0700 (PDT) In-Reply-To: References: <8373928E-23AF-41D1-83BA-34324C38BB02@exonetric.com> Date: Mon, 20 Jun 2011 11:15:04 +0200 X-Google-Sender-Auth: DlNwkajFR1AVEUz-JVNn7cGSsoM Message-ID: From: Stefan Midjich To: Mark Blackman Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-rc@freebsd.org Subject: Re: Status of /etc/rc.conf.d/servicename feature in rc.subr X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: swehack@gmail.com 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, 20 Jun 2011 09:15:06 -0000 Actually I have something to add about /etc/rc.conf.d and it's not about the shell code. My purpose to all this was to find a way to configure network interfaces that doesn't require parsing rc.conf. We deploy hundreds of machines using data center management tools so writing functions in these tools for network configuration becomes much easier if you separate the network configuration into their own files. So using /etc/rc.conf.d/network will work, but I would like to go further and suggest the OpenBSD model of using interface.ifname or something similar. One file for each interface that is. 2011/6/20 Stefan Midjich : > Shortly after I posted my e-mail I was talking about this with a > co-worker and realized that I'm using the wrong servicename in > rc.conf.d. Checking the name variable in /etc/rc.d/netif made it all > much more clear. > > And yes I would support the further development of this feature > because I plan on using it in deployment of FreeBSD nodes. > > 2011/6/20 Mark Blackman : >> On 20 Jun 2011, at 09:20, Stefan Midjich wrote: >> >>> I noticed in /etc/rc.subr that the function load_rc_config sources >>> /etc/rc.conf.d/${_name}. This is however undocumented, NetBSD mentions >>> this feature in rc.conf(5) but FreeBSD does not. >>> >>> I have two questions, is this a new undocumented feature, or an old >>> one being phased out? I'm hoping it's a new because I really want this >>> feature. >>> >>> Second question, how do I use it? I've tried to track the ${_name} >>> variable but I can't find anyone calling the parent function >>> load_rc_config_var() where the name variable is set from its first >>> argument. >> >> I've added a file called 'jail' there =A0and /etc/rc.d/jail will then >> pick up configuration data from /etc/rc.conf.d/jail. >> >> I think it's quite a useful feature and would support it's >> continued existence. However I wonder who else might be interested >> in a better referencing method more like a perl hash or YAML files >> for the configuration data. >> >> There's a clear nesting behaviour there built from shell variable >> names that I find a little bit overextended. >> >> - Mark >> > > > > -- > > > Med v=E4nliga h=E4lsningar / With kind regards > > Stefan Midjich > http://swehack.se > --=20 Med v=E4nliga h=E4lsningar / With kind regards Stefan Midjich http://swehack.se From owner-freebsd-rc@FreeBSD.ORG Mon Jun 20 09:25:16 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 59D9D1065674 for ; Mon, 20 Jun 2011 09:25:16 +0000 (UTC) (envelope-from mark@exonetric.com) Received: from relay0.exonetric.net (relay0.exonetric.net [82.138.248.161]) by mx1.freebsd.org (Postfix) with ESMTP id 147918FC1B for ; Mon, 20 Jun 2011 09:25:15 +0000 (UTC) Received: from [172.16.0.162] (94-30-105-106.xdsl.murphx.net [94.30.105.106]) by relay0.exonetric.net (Postfix) with ESMTP id 605265700F; Mon, 20 Jun 2011 09:57:15 +0100 (BST) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Mark Blackman In-Reply-To: Date: Mon, 20 Jun 2011 09:57:15 +0100 Content-Transfer-Encoding: 7bit Message-Id: <8373928E-23AF-41D1-83BA-34324C38BB02@exonetric.com> References: To: swehack@gmail.com X-Mailer: Apple Mail (2.1084) Cc: freebsd-rc@freebsd.org Subject: Re: Status of /etc/rc.conf.d/servicename feature in rc.subr 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, 20 Jun 2011 09:25:16 -0000 On 20 Jun 2011, at 09:20, Stefan Midjich wrote: > I noticed in /etc/rc.subr that the function load_rc_config sources > /etc/rc.conf.d/${_name}. This is however undocumented, NetBSD mentions > this feature in rc.conf(5) but FreeBSD does not. > > I have two questions, is this a new undocumented feature, or an old > one being phased out? I'm hoping it's a new because I really want this > feature. > > Second question, how do I use it? I've tried to track the ${_name} > variable but I can't find anyone calling the parent function > load_rc_config_var() where the name variable is set from its first > argument. I've added a file called 'jail' there and /etc/rc.d/jail will then pick up configuration data from /etc/rc.conf.d/jail. I think it's quite a useful feature and would support it's continued existence. However I wonder who else might be interested in a better referencing method more like a perl hash or YAML files for the configuration data. There's a clear nesting behaviour there built from shell variable names that I find a little bit overextended. - Mark From owner-freebsd-rc@FreeBSD.ORG Mon Jun 20 09:35:28 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 1B5F51065674 for ; Mon, 20 Jun 2011 09:35:28 +0000 (UTC) (envelope-from utisoft@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 D5C1B8FC08 for ; Mon, 20 Jun 2011 09:35:27 +0000 (UTC) Received: by iyb11 with SMTP id 11so1006334iyb.13 for ; Mon, 20 Jun 2011 02:35:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:from :date:x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=lFSgYfmw3p3HKSKvWfgY6mIYR90sMTJBKtGXnN3EKJQ=; b=loAz4Xr3J1aKk0f5T3I1R9i1M2NqWM38lGsfBuMQ+eunboXAIIZnaxcVuX96q2mK70 UkcFPejz7RPImcdURpHLz1izSTMPp+Y8bKhlMIrFxQgx7PVKrOb3QI7zAOOwm1l9qd9k OMcrtKWRpPiV83AsfQI2P9R9DTx3duoD2k5Vw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; b=azl0xSzOdk9lOJSVYmSZTWanoEXDhZfhQwXV1vOcQaKXmrKJxi+aVRJ2UJqUSh/tal CgPDwo4/DcjLubVb0wQCscMP6ED7jb23aD4E8DNMcwfEWXdbhQl6uK3RWPgPrc2ulodA mAgvU+hQVk8UDQDSoQJzAHQ2BzMgMyjhSVnQw= Received: by 10.42.147.137 with SMTP id n9mr5259201icv.383.1308562527171; Mon, 20 Jun 2011 02:35:27 -0700 (PDT) MIME-Version: 1.0 Sender: utisoft@gmail.com Received: by 10.231.49.193 with HTTP; Mon, 20 Jun 2011 02:34:57 -0700 (PDT) In-Reply-To: <8373928E-23AF-41D1-83BA-34324C38BB02@exonetric.com> References: <8373928E-23AF-41D1-83BA-34324C38BB02@exonetric.com> From: Chris Rees Date: Mon, 20 Jun 2011 10:34:57 +0100 X-Google-Sender-Auth: H8WXl3okWPIfUI9HSXxvCNhvn_E Message-ID: To: Mark Blackman Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-rc@freebsd.org Subject: Re: Status of /etc/rc.conf.d/servicename feature in rc.subr 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, 20 Jun 2011 09:35:28 -0000 On 20 June 2011 09:57, Mark Blackman wrote: > On 20 Jun 2011, at 09:20, Stefan Midjich wrote: > >> I noticed in /etc/rc.subr that the function load_rc_config sources >> /etc/rc.conf.d/${_name}. This is however undocumented, NetBSD mentions >> this feature in rc.conf(5) but FreeBSD does not. >> >> I have two questions, is this a new undocumented feature, or an old >> one being phased out? I'm hoping it's a new because I really want this >> feature. >> >> Second question, how do I use it? I've tried to track the ${_name} >> variable but I can't find anyone calling the parent function >> load_rc_config_var() where the name variable is set from its first >> argument. > > I've added a file called 'jail' there =A0and /etc/rc.d/jail will then > pick up configuration data from /etc/rc.conf.d/jail. > > I think it's quite a useful feature and would support it's > continued existence. However I wonder who else might be interested > in a better referencing method more like a perl hash or YAML files > for the configuration data. > > There's a clear nesting behaviour there built from shell variable > names that I find a little bit overextended. > > - Mark Please refer to [1] -- rc.conf.d should not be going away, but it's undocumented because its behaviour has not been finalised -- use at your own risk, and keep up with rc.subr changes! Chris [1] http://freebsd.1045724.n5.nabble.com/RFC-Change-Request-Create-usefulne= ss-in-rc-subr-etc-rc-conf-d-conf-namespace-td4380385.html From owner-freebsd-rc@FreeBSD.ORG Mon Jun 20 11:07:09 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 BFFC1106566C for ; Mon, 20 Jun 2011 11:07:09 +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 AE2C18FC0A for ; Mon, 20 Jun 2011 11:07:09 +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 p5KB79Pc098221 for ; Mon, 20 Jun 2011 11:07:09 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p5KB79ts098219 for freebsd-rc@FreeBSD.org; Mon, 20 Jun 2011 11:07:09 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 20 Jun 2011 11:07:09 GMT Message-Id: <201106201107.p5KB79ts098219@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, 20 Jun 2011 11:07:09 -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/157687 rc [patch] /etc/rc.d/quota and quotaon args o conf/155006 rc [patch] named(8): /etc/rc.d/named might set wrong pid o conf/154554 rc [rc.d] [patch] statd and lockd fail to start o conf/153666 rc [rc.d][patch] mount filesystems from fstab over zfs da o conf/153200 rc post-boot /etc/rc.d/network_ipv6 start can miss neighb o conf/153123 rc [rc] [patch] add gsched rc file to automatically inser o conf/152784 rc services provide himself instead providing class of se o conf/150752 rc [rc.subr] [patch] be not needed to eval $_pidcmd on re o conf/150474 rc [patch] rc.d/accounting: Add ability to set location o o conf/149867 rc [PATCH] rc.d script to manage multiple FIBS (kern opti o conf/149831 rc [PATCH] add support to /etc/rc.d/jail for delegating Z o conf/148656 rc rc.firewall(8): {oip} and {iip} variables in rc.firewa o conf/147685 rc [rc.d] [patch] new feature for /etc/rc.d/fsck o conf/147444 rc [rc.d] [patch] /etc/rc.d/zfs stop not called on reboot o conf/146053 rc [patch] [request] shutdown of jails breaks inter-jail o conf/145445 rc [rc.d] error in /etc/rc.d/jail (bad logic) o conf/145440 rc [rc.d] [patch] add multiple fib support (setfib) in /e o conf/145399 rc [patch] rc.d scripts are unable to start/stop programs o conf/145344 rc [patch] Fix kitchen sink approach for rc.d scripts ins 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.d] [patch] Making rc.firewall (workstation) IPv6 a o conf/137629 rc [rc.d] background_dhclient rc.conf option causing doub o conf/137470 rc [PATCH] /etc/rc.d/mdconfig2 : prioritize cli parameter o conf/137271 rc [rc.d] Cannot update /etc/host.conf when root filesyst 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/128299 rc [patch] /etc/rc.d/geli does not mount partitions using 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/122968 rc [rc.d] /etc/rc.d/addswap: md swapfile multiplication a 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/109272 rc [request] increase default rc shutdown timeout 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 94 problems total. From owner-freebsd-rc@FreeBSD.ORG Mon Jun 20 16:45:54 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 752511065670 for ; Mon, 20 Jun 2011 16:45:54 +0000 (UTC) (envelope-from Devin.Teske@fisglobal.com) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) by mx1.freebsd.org (Postfix) with ESMTP id 3B3BD8FC38 for ; Mon, 20 Jun 2011 16:45:53 +0000 (UTC) Received: from sbhfislrext01.fnfis.com ([192.168.249.167]) by SCSFISLTC02 (8.14.3/8.14.3) with ESMTP id p5KGjpEA001219; Mon, 20 Jun 2011 11:45:51 -0500 Received: from SBHFISLTCGW04.FNFIS.COM (Not Verified[10.132.248.123]) by sbhfislrext01.fnfis.com with MailMarshal (v6, 5, 4, 7535) id ; Mon, 20 Jun 2011 11:45:49 -0500 Received: from sbhfisltcgw01.FNFIS.COM ([10.132.248.121]) by SBHFISLTCGW04.FNFIS.COM with Microsoft SMTPSVC(6.0.3790.4675); Mon, 20 Jun 2011 11:45:50 -0500 Received: from dtwin ([10.132.254.136]) by sbhfisltcgw01.FNFIS.COM over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Mon, 20 Jun 2011 11:45:40 -0500 From: "Devin Teske" To: , "'Mark Blackman'" References: <8373928E-23AF-41D1-83BA-34324C38BB02@exonetric.com> In-Reply-To: Date: Mon, 20 Jun 2011 09:45:42 -0700 Organization: Vicor, Inc. Message-ID: <00fb01cc2f69$7f493f00$7ddbbd00$@vicor.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQHr8eQyEmtpbOMcu6vDfI/M5xpLUQKmrbN5Ajh6mLEBUjXyUZRVYyCA Content-Language: en-us X-OriginalArrivalTime: 20 Jun 2011 16:45:40.0646 (UTC) FILETIME=[7D422460:01CC2F69] Cc: freebsd-rc@freebsd.org Subject: RE: Status of /etc/rc.conf.d/servicename feature in rc.subr 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, 20 Jun 2011 16:45:54 -0000 > -----Original Message----- > From: owner-freebsd-rc@freebsd.org [mailto:owner-freebsd-rc@freebsd.org] > On Behalf Of Stefan Midjich > Sent: Monday, June 20, 2011 2:15 AM > To: Mark Blackman > Cc: freebsd-rc@freebsd.org > Subject: Re: Status of /etc/rc.conf.d/servicename feature in rc.subr >=20 > Actually I have something to add about /etc/rc.conf.d and it's not about = the shell > code. >=20 > My purpose to all this was to find a way to configure network interfaces = that > doesn't require parsing rc.conf. I've written a utility named sysrc(8) that works like sysctl(8), making management of rc.conf(5) trivial. http://druidbsd.sourceforge.net/download/sysrc.txt Quite a few people have written to me to say thanks, that it makes automati= on and mass-deployment much simpler (extensively supports jails too). --=20 Devin > We deploy hundreds of machines using data > center management tools so writing functions in these tools for network > configuration becomes much easier if you separate the network configurati= on > into their own files. >=20 > So using /etc/rc.conf.d/network will work, but I would like to go further= and > suggest the OpenBSD model of using interface.ifname or something similar.= One > file for each interface that is. >=20 > 2011/6/20 Stefan Midjich : > > Shortly after I posted my e-mail I was talking about this with a > > co-worker and realized that I'm using the wrong servicename in > > rc.conf.d. Checking the name variable in /etc/rc.d/netif made it all > > much more clear. > > > > And yes I would support the further development of this feature > > because I plan on using it in deployment of FreeBSD nodes. > > > > 2011/6/20 Mark Blackman : > >> On 20 Jun 2011, at 09:20, Stefan Midjich wrote: > >> > >>> I noticed in /etc/rc.subr that the function load_rc_config sources > >>> /etc/rc.conf.d/${_name}. This is however undocumented, NetBSD > >>> mentions this feature in rc.conf(5) but FreeBSD does not. > >>> > >>> I have two questions, is this a new undocumented feature, or an old > >>> one being phased out? I'm hoping it's a new because I really want > >>> this feature. > >>> > >>> Second question, how do I use it? I've tried to track the ${_name} > >>> variable but I can't find anyone calling the parent function > >>> load_rc_config_var() where the name variable is set from its first > >>> argument. > >> > >> I've added a file called 'jail' there =A0and /etc/rc.d/jail will then > >> pick up configuration data from /etc/rc.conf.d/jail. > >> > >> I think it's quite a useful feature and would support it's continued > >> existence. However I wonder who else might be interested in a better > >> referencing method more like a perl hash or YAML files for the > >> configuration data. > >> > >> There's a clear nesting behaviour there built from shell variable > >> names that I find a little bit overextended. > >> > >> - Mark > >> > > > > > > > > -- > > > > > > Med v=E4nliga h=E4lsningar / With kind regards > > > > Stefan Midjich > > http://swehack.se > > >=20 >=20 >=20 > -- >=20 >=20 > Med v=E4nliga h=E4lsningar / With kind regards >=20 > Stefan Midjich > http://swehack.se > _______________________________________________ > freebsd-rc@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-rc > To unsubscribe, send any mail to "freebsd-rc-unsubscribe@freebsd.org" _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you. _____________ From owner-freebsd-rc@FreeBSD.ORG Mon Jun 20 16:50:37 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 797A8106568B for ; Mon, 20 Jun 2011 16:50:37 +0000 (UTC) (envelope-from Devin.Teske@fisglobal.com) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) by mx1.freebsd.org (Postfix) with ESMTP id 44AC38FC08 for ; Mon, 20 Jun 2011 16:50:35 +0000 (UTC) Received: from SBHFISLREXT03 ([10.132.254.62]) by SCSFISLTC02 (8.14.3/8.14.3) with ESMTP id p5KGoZgS006668; Mon, 20 Jun 2011 11:50:35 -0500 Received: from sbhfisltcgw02.FNFIS.COM (Not Verified[10.132.248.122]) by SBHFISLREXT03 with MailMarshal (v6, 5, 4, 7535) id ; Mon, 20 Jun 2011 11:50:56 -0500 Received: from SBHFISLTCGW07.FNFIS.COM ([10.132.248.135]) by sbhfisltcgw02.FNFIS.COM with Microsoft SMTPSVC(6.0.3790.4675); Mon, 20 Jun 2011 11:50:34 -0500 Received: from dtwin ([10.132.254.136]) by SBHFISLTCGW07.FNFIS.COM over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Mon, 20 Jun 2011 11:50:33 -0500 From: "Devin Teske" To: , References: In-Reply-To: Date: Mon, 20 Jun 2011 09:50:36 -0700 Organization: Vicor, Inc. Message-ID: <010e01cc2f6a$2e53e270$8afba750$@vicor.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQHr8eQyEmtpbOMcu6vDfI/M5xpLUZSG70zw Content-Language: en-us X-OriginalArrivalTime: 20 Jun 2011 16:50:34.0067 (UTC) FILETIME=[2C26A230:01CC2F6A] Cc: Subject: RE: Status of /etc/rc.conf.d/servicename feature in rc.subr 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, 20 Jun 2011 16:50:37 -0000 > -----Original Message----- > From: owner-freebsd-rc@freebsd.org [mailto:owner-freebsd-rc@freebsd.org] > On Behalf Of Stefan Midjich > Sent: Monday, June 20, 2011 1:20 AM > To: freebsd-rc@freebsd.org > Subject: Status of /etc/rc.conf.d/servicename feature in rc.subr >=20 > I noticed in /etc/rc.subr that the function load_rc_config sources > /etc/rc.conf.d/${_name}. This is however undocumented, NetBSD mentions th= is > feature in rc.conf(5) but FreeBSD does not. The `rc.conf.d' feature is documented (albeit loosely) in the FreeBSD 9-CUR= RENT rc.conf(5) man-page, viewable here: http://www.freebsd.org/cgi/man.cgi?query=3Drc.conf&apropos=3D0&sektion=3D0&= manpath=3DFre eBSD+9-current&format=3Dhtml Though, as forewarned by others, this documentation is likely to change. Ke= ep up-to-date with /etc/rc.subr, UPDATING, ERRATA, and rc.conf(5) for future updates. --=20 Devin >=20 > I have two questions, is this a new undocumented feature, or an old one b= eing > phased out? I'm hoping it's a new because I really want this feature. >=20 > Second question, how do I use it? I've tried to track the ${_name} variab= le but I > can't find anyone calling the parent function > load_rc_config_var() where the name variable is set from its first argume= nt. >=20 > I've done some trial and error by creating files called > /etc/rc.conf.d/{ifconfig,ifconfig_em0,ifconfig_em0_alias} to try and add = an alias > just to see if it works. Negative results though as no changes are made. >=20 > -- >=20 >=20 > Med v=E4nliga h=E4lsningar / With kind regards >=20 > Stefan Midjich > http://swehack.se > _______________________________________________ > freebsd-rc@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-rc > To unsubscribe, send any mail to "freebsd-rc-unsubscribe@freebsd.org" _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you. _____________ From owner-freebsd-rc@FreeBSD.ORG Thu Jun 23 18:12:26 2011 Return-Path: Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (unknown [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6C4281065675; Thu, 23 Jun 2011 18:12:26 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 429E18FC16; Thu, 23 Jun 2011 18:12:26 +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 p5NICQ7L017431; Thu, 23 Jun 2011 18:12:26 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p5NICQfj017426; Thu, 23 Jun 2011 18:12:26 GMT (envelope-from linimon) Date: Thu, 23 Jun 2011 18:12:26 GMT Message-Id: <201106231812.p5NICQfj017426@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-rc@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: conf/158127: [patch] remount_optional option in rc.initdiskless doesn't actually work 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: Thu, 23 Jun 2011 18:12:26 -0000 Synopsis: [patch] remount_optional option in rc.initdiskless doesn't actually work Responsible-Changed-From-To: freebsd-bugs->freebsd-rc Responsible-Changed-By: linimon Responsible-Changed-When: Thu Jun 23 18:12:03 UTC 2011 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=158127