On 7/12/06, Jack J. Woehr <[EMAIL PROTECTED]> wrote:
On Jul 12, 2006, at 2:33 PM, Gustavo Rios wrote:
> Dear folks,
>
> i am trying to get the following line in my /etc/rc.local file:
>
> csh -cf '$ASDROOT/thr/svscanboot &'
>
> And in my /etc/rc.conf.local i added:
>
> ASDROOT=/asd
>
> During the system boot, all i get is the ASDROOT variable is
> undefined.
Yes, because it isn't exported and you've surrounded it with single
quotes,
so it's passed to CSH for interp, and CSH doesn't have it in its env.
In case that's not clear, it means you have to have this in rc.conf.local:
ASDROOT=/asd
export ASDROOT
This will put ASDROOT into the global namespace (instead of just the
rc.conf.local namespace), allowing rc.local to access it.
Reading rc.conf(8), I see "This file contains a series of Bourne-shell
syntax assignments that are used to configure the system daemons. It
is not read by the kernel, but is sourced by various other files in
the /etc/rc.* series in order to set shell variables used therein to
control the behaviour of the scripts."
So perhaps your problem, then, is that the line you are adding is
coming *before* rc.conf.local gets 'sourced'. Read /etc/rc and see
what you find.
-Nick