From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 23 22:13:53 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 98A381065673 for ; Sat, 23 Aug 2008 22:13:53 +0000 (UTC) (envelope-from fbsd06+ZC=1851d6f1@mlists.homeunix.com) Received: from mxout-03.mxes.net (mxout-03.mxes.net [216.86.168.178]) by mx1.freebsd.org (Postfix) with ESMTP id 6F7338FC13 for ; Sat, 23 Aug 2008 22:13:53 +0000 (UTC) (envelope-from fbsd06+ZC=1851d6f1@mlists.homeunix.com) Received: from gumby.homeunix.com. (unknown [87.81.140.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id 0206023E49C for ; Sat, 23 Aug 2008 18:13:51 -0400 (EDT) Date: Sat, 23 Aug 2008 23:13:49 +0100 From: RW To: freebsd-hackers@freebsd.org Message-ID: <20080823231349.5941d9f3@gumby.homeunix.com.> In-Reply-To: References: <20080823153354.2ed632d4@peedub.jennejohn.org> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 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 22:13:53 -0000 On Sat, 23 Aug 2008 16:38:13 -0400 "Aryeh Friedman" wrote: > c) See a additionally to prove all the above here is my /etc/rc (the > last 2 lines where added just to prove the point): > > #!/bin/sh > > PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin > > swapon -a > fsck -p > ... > fuse: failed to exec mount program: No such file or directory > > Thus it is clear that the *ONLY* difference between the /etc/rc calls > and the post getty calls is when they are made. There's another difference: your /etc/rc script doesn't export PATH.