On Tue, 2005-08-23 at 16:33 +0200, Sven Köhler wrote: > Hi, > > i just wrote an init.d-script and i thought that the LANG variable was > inherited since it set system-wide in /etc/env.d/02locale and therefor > is also found in /etc/profile.env
Did you env-update? > > Now i noticed, that LANG isn't set for the process started by my > init.d-script. I set LANG and a few other things in /etc/env.d/02locale Here's a quick init script called test #!/sbin/runscript start() { set | grep LANG } Now, lets see what it does uberpc init.d # ./test start * Starting service test LANG=en_GB.utf8 LANGUAGE=en_GB.utf8 set | grep LANG * Service test started OK > > So what's the intension to ignore /etc/profile.env for init.d-script and > what's the gentoo-way of loading the all or specific variabled from > /etc/profile.env? So we're not ignoring it. Maybe the process itself doesn't use LANG ? Thanks Roy -- gentoo-dev@gentoo.org mailing list