From owner-freebsd-questions Wed Feb 21 7:32:57 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dsl-64-193-218-89.telocity.com (dsl-64-193-218-89.telocity.com [64.193.218.89]) by hub.freebsd.org (Postfix) with SMTP id 84B1B37B65D for ; Wed, 21 Feb 2001 07:32:54 -0800 (PST) (envelope-from lucas@slb.to) Received: (qmail 6672 invoked by uid 1000); 21 Feb 2001 15:33:13 -0000 Date: Wed, 21 Feb 2001 09:33:13 -0600 From: Lucas Bergman To: falbu@amnesty.org Cc: freebsd-questions@freebsd.org Subject: Re: Boot up execution order - error in man pages? Message-ID: <20010221093313.D4793@billygoat.slb.to> Reply-To: lucas@slb.to References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: ; from falbu@amnesty.org on Wed, Feb 21, 2001 at 03:12:04PM +0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I was trying to configure the system-wide path, so that it will > contain /usr/local/bin. I have a script which is launched in > /usr/local/etc/rc.d and it needed that path. > > According to the manual (FreeBSD 4.1) : "The rc.d directories > contain scripts which will be automatically executed at boot time. > The specified directories are processed immediately after rc.local > is executed. (See below for details on how to specify directo­ ries > to check.) " > > It seems to me that this is not true. At the point the script from > the rc.d folder is launched, the content of the PATH variable is as > specified in /etc/rc, even if I have added the right settings in > /etc/rc.local. You're mixing up two paths: there are the directories that /etc/rc checks for scripts to run, and there are the directories the shell checks for executables to run. The first is set in /etc/{defaults/,}rc.conf. The second is set in /etc/rc, but can be overridden in your script. Just put `PATH=${PATH}:/usr/local/bin' in your /usr/local/etc/rc.d/whatever.sh script. Lucas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message