Date: Wed, 21 Feb 2001 09:33:13 -0600 From: Lucas Bergman <lucas@slb.to> 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> In-Reply-To: <OF670C16D1.48E60EA9-ON802569FA.00526398@amnesty.org>; from falbu@amnesty.org on Wed, Feb 21, 2001 at 03:12:04PM %2B0000 References: <OF670C16D1.48E60EA9-ON802569FA.00526398@amnesty.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010221093313.D4793>
