setting env vars

Condon Thomas A KPWA tcondon
Mon May 17 11:44:18 PDT 2004


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?


In Harmony's Way, and In A Chord,

Tom  :-})

Thomas A. Condon
Barbershop Bass Singer
Registered Linux User #154358
A Jester Unemployed


More information about the Linux-users mailing list