From owner-freebsd-questions@FreeBSD.ORG Fri Dec 16 12:04:00 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 6C48D16A41F for ; Fri, 16 Dec 2005 12:04:00 +0000 (GMT) (envelope-from helge.preuss@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.21]) by mx1.FreeBSD.org (Postfix) with SMTP id 77AEB43D66 for ; Fri, 16 Dec 2005 12:03:59 +0000 (GMT) (envelope-from helge.preuss@gmx.net) Received: (qmail invoked by alias); 16 Dec 2005 12:03:58 -0000 Received: from e178098192.adsl.alicedsl.de (EHLO [192.168.0.146]) [85.178.98.192] by mail.gmx.net (mp030) with SMTP; 16 Dec 2005 13:03:58 +0100 X-Authenticated: #6367088 Message-ID: <43A2AD65.9080607@gmx.net> Date: Fri, 16 Dec 2005 13:04:53 +0100 From: Helge Preuss User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051204) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Subject: 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:04:00 -0000 Hello, I use a GBDE-encrypted /var partition which i attach and mount during boot in rc.local. Now this has worked flawlessly until my last portmanager -u run, after which the following happens during the boot sequence: - /etc/rc.d/ldconfig writes /var/run/ld.so.hints and /var/run/ld-elf.so.hints - /etc/rc.d/local attaches and mounts my encrypted /var partition - every subsequent program fails to start up because it cannot find any dynamic library it needs due to the hidden /var/run/ld*.so.hints 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. Thanks Helge -- Helge Preuss Freelance Software Developer +49 177 2262 484 helge.preuss@gmx.net