From owner-freebsd-stable@FreeBSD.ORG Tue Jun 20 16:34:58 2006 Return-Path: X-Original-To: freebsd-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 5DDCD16A47B for ; Tue, 20 Jun 2006 16:34:58 +0000 (UTC) (envelope-from LoN_Kamikaze@gmx.de) Received: from mail.gmx.net (mail.gmx.de [213.165.64.21]) by mx1.FreeBSD.org (Postfix) with SMTP id 880AC43D46 for ; Tue, 20 Jun 2006 16:34:57 +0000 (GMT) (envelope-from LoN_Kamikaze@gmx.de) Received: (qmail invoked by alias); 20 Jun 2006 16:34:56 -0000 Received: from p54A7EDE1.dip.t-dialin.net (EHLO [192.168.0.12]) [84.167.237.225] by mail.gmx.net (mp037) with SMTP; 20 Jun 2006 18:34:56 +0200 X-Authenticated: #5465401 Message-ID: <449823A0.2020602@gmx.de> Date: Tue, 20 Jun 2006 18:34:40 +0200 From: "[LoN]Kamikaze" Organization: Lords of Nightmare User-Agent: Thunderbird 1.5.0.4 (X11/20060605) MIME-Version: 1.0 To: Pete French , webmaster@hirsch.it References: In-Reply-To: X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Cc: freebsd-stable@freebsd.org 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:34:58 -0000 Pete French wrote: >> What is the correct way for 6-STABLE to achieve what I want to do? >> (i.e. write the rc.conf from a rc script) > > I thought rc.conf was simply a script that set some variables. If > this is the case then you don't need to overwrite it - you simply need to > make your script set the appropriate variables and then drop it in as > a repplacement for rc.conf - hence no need to rewrite rc.conf at all. > > -pcf. If your scripts name ends with .sh it will be sourced into the process and all variables set there will prevail (this feature only works in /etc/rc.d). If you do this you must not use the exit command anywhere in your script.