From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 23 13:33:57 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 95A51106564A for ; Sat, 23 Aug 2008 13:33:57 +0000 (UTC) (envelope-from gary.jennejohn@freenet.de) Received: from mout2.freenet.de (mout2.freenet.de [IPv6:2001:748:100:40::2:4]) by mx1.freebsd.org (Postfix) with ESMTP id 1D8168FC1E for ; Sat, 23 Aug 2008 13:33:57 +0000 (UTC) (envelope-from gary.jennejohn@freenet.de) Received: from [195.4.92.17] (helo=7.mx.freenet.de) by mout2.freenet.de with esmtpa (ID gary.jennejohn@freenet.de) (port 25) (Exim 4.69 #19) id 1KWtFb-0006ko-RP; Sat, 23 Aug 2008 15:33:55 +0200 Received: from m874e.m.pppool.de ([89.49.135.78]:19295 helo=peedub.jennejohn.org) by 7.mx.freenet.de with esmtpa (ID gary.jennejohn@freenet.de) (port 25) (Exim 4.69 #12) id 1KWtFb-00084r-Jb; Sat, 23 Aug 2008 15:33:55 +0200 Date: Sat, 23 Aug 2008 15:33:54 +0200 From: Gary Jennejohn To: freebsd-hackers@freebsd.org Message-ID: <20080823153354.2ed632d4@peedub.jennejohn.org> In-Reply-To: References: X-Mailer: Claws Mail 3.5.0 (GTK+ 2.10.14; amd64-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Aryeh Friedman Subject: Re: What is difference between /etc/rc called programs and ones called after login prompt shows up X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gary.jennejohn@freenet.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Aug 2008 13:33:57 -0000 On Sat, 23 Aug 2008 06:34:23 -0400 "Aryeh Friedman" wrote: > What is difference between /etc/rc.d called programs and ones called > after login prompt shows up? > > The reason for asking is sysutils/fusefs-kmod gives an error if any > mounts are attempted in /etc/rc but if the exactly the same command is > issued by a user's .login/.xsession/etc. it works without problem > (assuming proper permissions of course). > > a) Can anyone think of a reason why this would happen (the maintainer > is non-responive) > I suspect that fuse.ko is loaded by one of the scripts under /etc/rc.d since it seems to be installed under $PREFIX/modules where PREFIX is normally /usr/local. Until that happens you can't use mount_fusefs. > b) Is it possible to force something to run after /etc/rc exits but > before init calls getty? > Well, there are ways to force dependencies in the rc.d scripts, but I don't know the setup well enough to be helpful. I have no idea which script handles modules installed by ports and when it is invoked. You could try moving fuse.ko to /boot/modules and modify loader.conf to load fuse.ko at boot time. --- Gary Jennejohn