From owner-freebsd-questions@FreeBSD.ORG Fri Dec 16 12:15:21 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F1C1B16A41F for ; Fri, 16 Dec 2005 12:15:21 +0000 (GMT) (envelope-from norgaard@locolomo.org) Received: from strange.daemonsecurity.com (59.Red-81-33-11.staticIP.rima-tde.net [81.33.11.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7204F43D4C for ; Fri, 16 Dec 2005 12:15:21 +0000 (GMT) (envelope-from norgaard@locolomo.org) Received: from [172.24.8.84] (generic.atosorigin.es [212.170.156.200]) by strange.daemonsecurity.com (Postfix) with ESMTP id 2889A2E041; Fri, 16 Dec 2005 13:15:20 +0100 (CET) Message-ID: <43A2AFD6.4000506@locolomo.org> Date: Fri, 16 Dec 2005 13:15:18 +0100 From: Erik Norgaard User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051214) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Helge Preuss References: <43A2AD65.9080607@gmx.net> In-Reply-To: <43A2AD65.9080607@gmx.net> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Order of rc file execution X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Dec 2005 12:15:22 -0000 Helge Preuss wrote: > I use a GBDE-encrypted /var partition which i attach and mount during > boot in rc.local. why don't you use /etc/rc.d/gbde? (btw, which version of FBSD?). > As an ugly workaround i copied the ld*.so.hints to the encrypted > /var/run, but obviously it is better to run /etc/rc.d/local before > /etc/rc.d/ldconfig. I understand I can achieve this by changing the line > > # BEFORE: LOGIN > > in local to > > # BEFORE: ldconfig > > and change the REQUIRE line too to avoid a circular dependency. > > I'd just like to ask the list whether there is a way which does not > require changing system-supplied scripts. I'd prefer making my edits in > a centralized way (for instance, editing something like /etc/rc.local) > instead of something under rc.d. Option 1: seems to be use /etc/rc.d/gbde to mount your /var Option 2: seems to be create your script under /etc/rc.d with the desired BEFORE line. This doesn't change system supplied scripts, but when you do mergemaster then you will be asked if you want to delete this "stale" script. Cheers, Erik -- Ph: +34.666334818 web: www.locolomo.org S/MIME Certificate: www.daemonsecurity.com/ca/8D03551FFCE04F06.crt Subject ID: 9E:AA:18:E6:94:7A:91:44:0A:E4:DD:87:73:7F:4E:82:E7:08:9C:72 Fingerprint: 5B:D5:1E:3E:47:E7:EC:1C:4C:C8:3A:19:CC:AE:14:F5:DF:18:0F:B9