Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What is with the /etc/env.d files?
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
cayenne
l33t
l33t


Joined: 17 Oct 2002
Posts: 945
Location: New Orleans

PostPosted: Sat Feb 12, 2011 4:10 pm    Post subject: What is with the /etc/env.d files? Reply with quote

Hello all,

I've recently dug up a machine I'd not messed with in awhile. I did update to many things...KDE included.

I found that the XSESSION setting is no longer in /etc/rc.conf...but in a file in /etc/env.d/90xsession.

Why was this moved. Also, just looking around, looks like many different things moved here...and all the files seem to start with a number.

Is there any significance to the numbers starting the names?

Just hoping to learn a little about the move, and what to look for in this directory when configuring other things...what all uses this new directory?

Thanks in advance,

cayenne :D
_________________
Light travels faster than sound. This is why some people appear bright until you hear them speak.........
Back to top
View user's profile Send private message
lxg
Veteran
Veteran


Joined: 12 Nov 2005
Posts: 1019
Location: Aachen, Germany

PostPosted: Sat Feb 12, 2011 4:27 pm    Post subject: Reply with quote

It's a bunch of environment variables, grouped by applications/topics.

/etc/rc.conf is the global configuration file for OpenRC, which is responsible for runlevel management. Variables concerning GUI applications don't really belong there, think of servers for example. Hence /etc/env.d/90xsession.
_________________
lxg.de – codebits and tech talk
Back to top
View user's profile Send private message
cayenne
l33t
l33t


Joined: 17 Oct 2002
Posts: 945
Location: New Orleans

PostPosted: Sat Feb 12, 2011 7:27 pm    Post subject: Numbers? Reply with quote

lxg wrote:
It's a bunch of environment variables, grouped by applications/topics.

/etc/rc.conf is the global configuration file for OpenRC, which is responsible for runlevel management. Variables concerning GUI applications don't really belong there, think of servers for example. Hence /etc/env.d/90xsession.


Thank you for the reply.

Is there any significance to all of the files in there starting with a number...like in the example you gave...90xsession starts with "90"??

Thank you,

c
_________________
Light travels faster than sound. This is why some people appear bright until you hear them speak.........
Back to top
View user's profile Send private message
s_bernstein
Apprentice
Apprentice


Joined: 11 Mar 2006
Posts: 172
Location: Bremen, Germany

PostPosted: Sat Feb 12, 2011 8:36 pm    Post subject: Reply with quote

The files in /etc/env.d are processed in alphabetical order, so using numbers lets you easily controll the order of execution.
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