Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jun 2006 18:34:40 +0200
From:      "[LoN]Kamikaze" <LoN_Kamikaze@gmx.de>
To:        Pete French <petefrench@ticketswitch.com>,  webmaster@hirsch.it
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Question about current rc scripts
Message-ID:  <449823A0.2020602@gmx.de>
In-Reply-To: <E1Fsj3P-0007mN-BE@dilbert.firstcallgroup.co.uk>
References:  <E1Fsj3P-0007mN-BE@dilbert.firstcallgroup.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help


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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?449823A0.2020602>