View previous topic :: View next topic |
Author |
Message |
zephyr Guest
|
Posted: Sat May 11, 2002 3:27 am Post subject: profile.env - what is updating it at every boot? |
|
|
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
Joined: 10 May 2002 Posts: 44 Location: Smithtown, NY
|
Posted: Sat May 11, 2002 3:54 am Post subject: |
|
|
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 |
|
|
MarkG Tux's lil' helper
Joined: 28 Apr 2002 Posts: 90 Location: Dorset, UK
|
Posted: Sat May 11, 2002 5:47 am Post subject: |
|
|
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 |
|
|
Jeevz Bodhisattva
Joined: 15 Apr 2002 Posts: 195 Location: Boston, MA
|
Posted: Sat May 11, 2002 11:57 am Post subject: |
|
|
For more info on Gentoo's init system check out the Gentoo Linux 1.0 Init System; very useful information. |
|
Back to top |
|
|
gollum n00b
Joined: 18 May 2002 Posts: 19
|
Posted: Wed May 29, 2002 11:20 pm Post subject: env-update |
|
|
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 |
|
|
|