From owner-freebsd-stable@FreeBSD.ORG Tue Jun 20 16:59:23 2006 Return-Path: X-Original-To: stable@FreeBSD.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D353E16A47D for ; Tue, 20 Jun 2006 16:59:23 +0000 (UTC) (envelope-from petefrench@ticketswitch.com) Received: from mail.ticketswitch.com (mail.ticketswitch.com [194.200.93.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 782F943D48 for ; Tue, 20 Jun 2006 16:59:23 +0000 (GMT) (envelope-from petefrench@ticketswitch.com) Received: from [172.16.1.6] (helo=dilbert.firstcallgroup.co.uk) by mail.ticketswitch.com with esmtp (Exim 4.60 (FreeBSD)) (envelope-from ) id 1FsjZS-0008rF-LT; Tue, 20 Jun 2006 17:59:22 +0100 Received: from petefrench by dilbert.firstcallgroup.co.uk with local (Exim 4.61 (FreeBSD)) (envelope-from ) id 1FsjZS-0007q0-1n; Tue, 20 Jun 2006 17:59:22 +0100 To: M.Hirsch@gmx.de, stable@FreeBSD.org In-Reply-To: <44982469.9050008@gmx.de> Message-Id: From: Pete French Date: Tue, 20 Jun 2006 17:59:22 +0100 Cc: Subject: Re: Question about current rc scripts 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: Tue, 20 Jun 2006 16:59:23 -0000 > Setting the variables can't work. As far as I can see, rc.conf is > sourced from rc.subr. And every single script in /etc/rc.d/ sources > rc.subr, so they reload the rc.conf file for each call. Actually I was suggesting you overwrite rc.conf *itself* with the variable setting code - so every script which reloads it gets the variables set. Surely that would work ? Though it would mean your code would be run multiple times... -pete.