Date: Fri, 16 Dec 2005 13:15:18 +0100 From: Erik Norgaard <norgaard@locolomo.org> To: Helge Preuss <helge.preuss@gmx.net> Cc: freebsd-questions@freebsd.org Subject: Re: Order of rc file execution Message-ID: <43A2AFD6.4000506@locolomo.org> In-Reply-To: <43A2AD65.9080607@gmx.net> References: <43A2AD65.9080607@gmx.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43A2AFD6.4000506>