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