setting env vars
Net Llama!
netllama
Mon May 17 11:44:18 PDT 2004
On Mon, 10 Feb 2003, Condon Thomas A KPWA wrote:
> Net Llama! <mailto:netllama at linux-sxs.org> typed thusly on Monday, February
> 10, 2003 12:40 PM:
>
> > On Mon, 10 Feb 2003, David A. Bandel wrote:
> >> Remember all those daemons running on your system? Some
> >> of them need the information provided by these files and
> >> these daemons have no "environment". So where will they
> >> get the right info from?
> >>
> >> Since the info doesn't change, I suggest you get the
> >> address and name during bootup and put the correct info
> >> in the file.
> >
> > Unfortunately, its not quite that simple.
>
> Couldn't you set up the environmental variable in the /etc/rc.d/rc.sysinit
> file (or whatever file is executed first by init reading /etc/inittab) and
> export it. It would then be available to *all* of the daemons that init
> kicked off, as well as later applications. It would also be modifiable,
> too, wouldn't it?
According to Dave Bandel, that wouldn't work.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lonni J Friedman netllama at linux-sxs.org
Linux Step-by-step & TyGeMo http://netllama.ipfox.com
More information about the Linux-users
mailing list