Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Environment variables
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
Kobboi
l33t
l33t


Joined: 29 Jul 2005
Posts: 672
Location: Belgium

PostPosted: Sun Nov 15, 2009 5:30 pm    Post subject: Environment variables Reply with quote

Where exactly are environment variables set for processes that have nothing to do with login shells? I know about /etc/env.d and the /etc/profile.env file which is created from it by env-update and the fact that /etc/profile sources /etc/profile.env, but I thought this is only related to login shells. Or is it because init-script are bash-scripts that they also get the environment set in /etc/profile.env?
Back to top
View user's profile Send private message
richard.scott
Veteran
Veteran


Joined: 19 May 2003
Posts: 1497
Location: Oxfordshire, UK

PostPosted: Tue Nov 17, 2009 1:49 pm    Post subject: Reply with quote

You've answred your own question :wink:

However, it also depends on what variables your talking about.
for init.d scripts some variables are set in /etc/conf.d files of the same name.

i.e /etc/init.d/apache2 uses variables from /etc/conf.d/apache2

Rich.
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