Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
profile.env - what is updating it at every boot?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
zephyr
Guest





PostPosted: Sat May 11, 2002 3:27 am    Post subject: profile.env - what is updating it at every boot? Reply with quote

which program is updating profile.env at every boot?
anyone knows? I am trying to get some system config in there.
Back to top
Psychephylax
n00b
n00b


Joined: 10 May 2002
Posts: 44
Location: Smithtown, NY

PostPosted: Sat May 11, 2002 3:54 am    Post subject: Reply with quote

What are you trying to do?
Add more paths to your environment?

You might want to look at csh.env I think that gets loaded and sets up the profile.env
_________________
Stupidity, like hydrogen, is one of the basic building blocks of the Universe.
Back to top
View user's profile Send private message
MarkG
Tux's lil' helper
Tux's lil' helper


Joined: 28 Apr 2002
Posts: 90
Location: Dorset, UK

PostPosted: Sat May 11, 2002 5:47 am    Post subject: Reply with quote

zephyr wrote
Quote:

which program is updating profile.env at every boot?
anyone knows? I am trying to get some system config in there


Try looking in /etc/env.d, /etc/profile.env seems to be built from these files at boot.

MarkG
Back to top
View user's profile Send private message
Jeevz
Bodhisattva
Bodhisattva


Joined: 15 Apr 2002
Posts: 195
Location: Boston, MA

PostPosted: Sat May 11, 2002 11:57 am    Post subject: Reply with quote

For more info on Gentoo's init system check out the Gentoo Linux 1.0 Init System; very useful information.
Back to top
View user's profile Send private message
gollum
n00b
n00b


Joined: 18 May 2002
Posts: 19

PostPosted: Wed May 29, 2002 11:20 pm    Post subject: env-update Reply with quote

As far as I can see it is updated by the script /usr/sbin/env-update,
which is run by /etc/init.d/bootmisc, which is linked from /etc/runlevels/boot/bootmisc.
I.e. it gets run at every boot (by /sbin/rc by init as written in /etc/inittab).

So far so good, but what does env-update really do?
I wish the (great!) guys at Gentoo could add some man pages to this and other scripts in /usr/sbin and e.g. to /sbin/rc* also. If there is any list of these scripts, and what they do, please let me know. (The "Gentoo Linux 1.0 Init System" does not even mention env-update sadly enough.)

It is fairly easy to understand that it builds the files /etc/profile.env and /etc/ld.conf.so at least.
So, as an answer to your question, I think you should put you stuff in /etc/env.d (as MarkG said).

I guess the number on the files is some kind of startup order, not sure. If I do:
$ echo "KALLE=anka" > /etc/env.d/90kalle
$ env-update
It goes into /etc/profile.env as it shold at least.

/gollum
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum